XML 76 R50.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
Mortgage-Backed and Credit Risk Transfer Securities - Realized Gain (Loss) on Investments (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Debt Securities, Available-for-sale [Line Items]      
Gross realized gains on sale of investments $ 24,721 $ 774 $ 2,208
Gross realized losses on sale of investments (16,682) (218,910) (3,873)
Other-than-temporary impairment losses (7,731) (7,846) (11,962)
Net unrealized gains (losses on trading securities) 0 (21) 22
Total gain (loss) on investments, net 624,466 (327,700) (19,704)
MBS      
Debt Securities, Available-for-sale [Line Items]      
Net unrealized gains and losses on securities accounted for under the fair value option 626,104 (95,327) (21,368)
GSE CRT      
Debt Securities, Available-for-sale [Line Items]      
Net unrealized gains and losses on securities accounted for under the fair value option $ (1,946) $ (6,370) $ 15,269