Annual report pursuant to Section 13 and 15(d)

Fair Value by Balance Sheet Grouping (Details)

v3.8.0.1
Fair Value by Balance Sheet Grouping (Details) - USD ($)
$ in Thousands
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]        
Available-for-sale securities, at fair value $ 21,220,819 $ 13,116,171    
Mortgage servicing rights, at fair value 1,086,717 693,815 $ 493,688 $ 452,006
Residential mortgage loans held-for-investment in securitization trusts, at fair value 0 3,271,317    
Residential mortgage loans held-for-sale, at fair value 30,414 40,146 811,431 $ 535,712
Cash and cash equivalents 419,159 350,864 1,000,393  
Restricted cash 635,836 408,052 $ 262,562  
Derivative assets, at fair value 309,918 324,182    
Equity securities, at fair value 29,413 0    
Federal Home Loan Bank stock 53,826 167,856    
Equity investments 3,000 3,000    
Repurchase agreements 19,451,207 8,865,184    
Collateralized borrowings in securitization trusts, at fair value 0 3,037,196    
Federal Home Loan Bank advances 1,215,024 4,000,000    
Revolving credit facilities 20,000 70,000    
Convertible senior notes 282,827 0    
Convertible senior notes, at fair value 306,351 0    
Derivative liabilities, at fair value 31,903 12,501    
Federal Home Loan Bank of Des Moines [Member]        
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]        
Federal Home Loan Bank stock 53,826 167,856    
Federal Home Loan Bank advances $ 1,215,024 $ 4,000,000