Annual report pursuant to Section 13 and 15(d)

Schedule of Underlying Assets of Repurchase Agreements when Amount of Repurchase Agreements Exceeds 10 Percent of Assets (Details)

v3.19.1
Schedule of Underlying Assets of Repurchase Agreements when Amount of Repurchase Agreements Exceeds 10 Percent of Assets (Details) - USD ($)
$ in Thousands
Dec. 31, 2018
Dec. 31, 2017
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements $ 25,530,229 $ 21,501,250
Available-for-sale Securities [Member]    
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements 24,240,507 19,780,175
Servicing Contracts [Member]    
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements 685,683 424,740
Cash and Cash Equivalents [Member]    
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements 0 15,000
Restricted Cash and Cash Equivalents [Member]    
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements 416,696 417,018
Due From Correspondent Brokers [Member]    
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements 110,695 773,422
Derivative Financial Instruments, Assets [Member]    
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements 70,191 90,895
US Treasury Securities [Member]    
Assets Sold under Agreements to Repurchase [Line Items]    
Assets pledged or restricted as collateral for repurchase agreements $ 6,457 $ 0