Quarterly report pursuant to Section 13 or 15(d)

Fair Value by Balance Sheet Grouping (Details)

v3.8.0.1
Fair Value by Balance Sheet Grouping (Details) - USD ($)
$ in Thousands
Mar. 31, 2018
Dec. 31, 2017
Mar. 31, 2017
Dec. 31, 2016
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]        
Available-for-sale securities, at fair value $ 21,059,377 $ 21,220,819    
Mortgage servicing rights, at fair value 1,301,023 1,086,717 $ 747,580 $ 693,815
Residential mortgage loans held-for-sale, at fair value 29,428 30,414 $ 32,686 $ 40,146
Cash and cash equivalents 388,450 419,159    
Restricted cash 712,791 635,836    
Derivative assets, at fair value 274,048 309,918    
Equity securities, at fair value 27,423 29,413    
Federal Home Loan Bank stock 40,845 53,826    
Equity investments 3,000 3,000    
Repurchase agreements 19,148,679 19,451,207    
Federal Home Loan Bank advances 865,024 1,215,024    
Revolving credit facilities 20,000 20,000    
Convertible senior notes 283,054 282,827    
Convertible senior notes, at fair value 297,922 306,351    
Derivative liabilities, at fair value 46,074 31,903    
Federal Home Loan Bank of Des Moines [Member]        
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]        
Federal Home Loan Bank stock 40,845 53,826    
Federal Home Loan Bank advances $ 865,024 $ 1,215,024