Quarterly report pursuant to Section 13 or 15(d)

Schedule of Restricted Cash and Cash Equivalents (Details)

v3.23.2
Schedule of Restricted Cash and Cash Equivalents (Details) - USD ($)
$ in Thousands
Jun. 30, 2023
Dec. 31, 2022
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash $ 322,603 $ 443,026
Restricted Cash and Cash Equivalents Held for Securities Trading Activity [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 450 2,202
Restricted Cash and Cash Equivalents Held for Derivatives Trading Activity [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 15,597 79,220
Restricted Cash and Cash Equivalents Held for Servicing Activities [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 28,353 36,690
Restricted Cash and Cash Equivalents Pledged as Restricted Collateral for Borrowings [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 278,142 324,854
Restricted Cash and Cash Equivalents Held by Counterparties [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash 322,542 442,966
Restricted Cash and Cash Equivalents for Lease [Member]    
Restricted Cash and Cash Equivalents Items [Line Items]    
Restricted cash $ 61 $ 60