Annual report pursuant to Section 13 and 15(d)

Schedule of Restricted Cash and Cash Equivalents (Details)

v3.22.0.1
Schedule of Restricted Cash and Cash Equivalents (Details) - USD ($)
$ in Thousands
Dec. 31, 2021
Dec. 31, 2020
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash $ 934,814 $ 1,261,667
Restricted Cash and Cash Equivalents Held for Securities Trading Activity [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 23,800 44,800
Restricted Cash and Cash Equivalents Held for Derivatives Trading Activity [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 136,271 70,600
Restricted Cash and Cash Equivalents Held for Servicing Activities [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 26,704 19,768
Restricted Cash and Cash Equivalents Pledged as Restricted Collateral for Borrowings [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 747,979 1,126,439
Restricted Cash and Cash Equivalents Held by Counterparties [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 934,754 1,261,607
Restricted Cash and Cash Equivalents for Lease [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash $ 60 $ 60