Annual report pursuant to Section 13 and 15(d)

WAREHOUSE LINES OF CREDIT - Summary of Warehouse Lines of Credit (Details)

v3.22.4
WAREHOUSE LINES OF CREDIT - Summary of Warehouse Lines of Credit (Details) - Warehouse Agreement Borrowings - Line of Credit - USD ($)
12 Months Ended
Dec. 31, 2022
Mar. 09, 2023
Mar. 11, 2022
Dec. 31, 2021
Warehouse Lines of Credit [Line Items]        
Warehouse lines of credit $ 714,801,000     $ 1,928,543,000
Prepaid commitment fees (1,650,000)     (1,065,000)
Total 713,151,000     1,927,478,000
Master Repurchase Facility Agreement, $600 Million, Due January 2023        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity 600,000,000      
Warehouse lines of credit 47,565,000     472,646,000
Master Repurchase Facility Agreement $150 Million Due August 2023        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity 150,000,000      
Warehouse lines of credit 10,848,000     147,750,000
Minimum deposit required for line of credit 750,000      
Master Repurchase Facility Agreement $300 Million Due March 2023        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity 300,000,000      
Warehouse lines of credit 189,512,000     295,444,000
Minimum deposit required for line of credit 1,500,000      
Master Repurchase Facility Agreement $200 Million Due May 2023        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity 200,000,000      
Warehouse lines of credit $ 110,605,000     146,182,000
Master Repurchase Facility Agreement $200 Million Due May 2023 | Secured Overnight Financing Rate (SOFR)        
Warehouse Lines of Credit [Line Items]        
Variable rate, floor 0.25%      
Master Repurchase Facility Agreement $200 Million Due September 2023        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity $ 200,000,000      
Warehouse lines of credit $ 16,131,000     133,772,000
Master Repurchase Facility Agreement $200 Million Due September 2023 | Secured Overnight Financing Rate (SOFR)        
Warehouse Lines of Credit [Line Items]        
Variable rate, floor 0.40%      
Master Repurchase Facility Agreement $400 Million Due June 2023 Member        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity $ 400,000,000      
Warehouse lines of credit $ 81,353,000     377,416,000
Master Repurchase Facility Agreement $400 Million Due June 2023 Member | Subsequent Event        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity   $ 300,000,000    
Master Repurchase Facility Agreement $400 Million Due June 2023 Member | Secured Overnight Financing Rate (SOFR)        
Warehouse Lines of Credit [Line Items]        
Variable rate, floor 0.50%      
Master Repurchase Facility Agreement $100 Million Due April 2023        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity $ 100,000,000      
Warehouse lines of credit $ 56,237,000     117,935,000
Master Repurchase Facility Agreement $100 Million Due April 2023 | Secured Overnight Financing Rate (SOFR)        
Warehouse Lines of Credit [Line Items]        
Variable rate, floor 0.25%      
Master Repurchase Facility Agreement $50 Million 30 Days From Written Notice        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity $ 50,000,000      
Warehouse lines of credit $ 0     136,173,000
Maturity, period from written notice 30 days      
Master Repurchase Facility Agreement $75 Million Due March 2025        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity $ 75,000,000      
Warehouse lines of credit $ 40,096,000     33,452,000
Interest rate 3.375%      
Maximum term of buyout transactions on facility 4 years      
Master Repurchase Facility Agreement $200 Million        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity $ 200,000,000      
Warehouse lines of credit 0     26,947,000
Master Repurchase Facility Agreement $200 Million Due on Demand        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity 200,000,000      
Warehouse lines of credit 162,454,000     35,099,000
Master Repurchase Facility Agreement $200 Million Due on Demand | Secured Overnight Financing Rate (SOFR)        
Warehouse Lines of Credit [Line Items]        
Variable rate, floor     0.75%  
Master Repurchase Facility Agreement $75 Million        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity 75,000,000      
Warehouse lines of credit $ 0     $ 5,727,000
Master Repurchase Facility Agreement $345 Million, Due January 2024 | Subsequent Event        
Warehouse Lines of Credit [Line Items]        
Borrowing capacity   $ 345,000,000