Annual report pursuant to Section 13 and 15(d)

Term Notes Payable (Details)

v3.24.0.1
Term Notes Payable (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Debt Instrument [Line Items]          
Aggregate principal amount $ 400,000 $ 295,800 $ 400,000    
Gain on repurchase of term notes payable and convertible senior notes   5,104 0 $ 0  
Term notes payable $ 398,011 $ 295,271 $ 398,011    
Weighted average interest rate 7.19% 8.27% 7.19%    
Weighted average remaining maturities 1 year 6 months 6 months      
Mortgage servicing rights, at fair value $ 2,984,937 $ 3,052,016 $ 2,984,937 $ 2,191,578 $ 1,596,153
Weighted average underlying loan coupon of mortgage servicing rights pledged as collateral for borrowings 3.33% 3.32% 3.33%    
Restricted cash $ 443,026 $ 65,101 $ 443,026    
Restricted Cash and Cash Equivalents Pledged as Restricted Collateral for Borrowings [Member]          
Debt Instrument [Line Items]          
Restricted cash 324,854 12,575 324,854    
Asset Pledged as Collateral          
Debt Instrument [Line Items]          
Mortgage servicing rights, at fair value 3,000,000 3,000,000 3,000,000    
Term notes payable          
Debt Instrument [Line Items]          
Principal amount of term notes payable repurchased   104,200      
Cost of term notes payable repurchased   101,000      
Gain on repurchase of term notes payable and convertible senior notes   2,900      
Term notes payable | Restricted Cash and Cash Equivalents Pledged as Restricted Collateral for Borrowings [Member]          
Debt Instrument [Line Items]          
Restricted cash 200 200 200    
Term notes payable | Asset Pledged as Collateral          
Debt Instrument [Line Items]          
Mortgage servicing rights, at fair value $ 500,000 $ 397,900 $ 500,000