Does an unrealized gain or loss on trading securities require

Does an unrealized gain or loss on trading securities require recognition in a statement of cash flows? Would your answer change if the securities are classified as available-for-sale?