Annual report pursuant to Section 13 and 15(d)

RESIDENTIAL MORTGAGE LOANS - Summary of Activity for Residential Mortgage Loans (Details)

v3.20.4
RESIDENTIAL MORTGAGE LOANS - Summary of Activity for Residential Mortgage Loans (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
SEC Schedule, 12-29, Real Estate Companies, Investment in Movement in Mortgage Loans on Real Estate [Roll Forward]      
Balance, beginning $ 6,042,664    
Transfer of loans to real estate owned (43,409) $ (86,167)  
Accretion of loan discount and other amortization 151,540 379,129 $ 701,967
Balance, ending 5,215,703 6,042,664  
Residential Portfolio Segment      
SEC Schedule, 12-29, Real Estate Companies, Investment in Movement in Mortgage Loans on Real Estate [Roll Forward]      
Ditech Acquisition   999,336  
Fair value adjustment due to fair value option (6,020)    
Originations 61,684,462 19,512,072  
Sales (65,484,970) (26,034,030)  
Purchases/additional fundings 3,433,110 8,632,949  
Proceeds from repayments (423,335) (539,915)  
Transfer of loans to other assets (25,704) (10,566)  
Transfer of loans to real estate owned (35,470) (74,324)  
Transfers of loans to held for sale (62,274) (80,659)  
Transfer of loans from held-for-investment 62,274 80,659  
Accretion of loan discount and other amortization   28,702  
Valuation provision on loans 112,957 19,972  
Changes in instrument-specific credit risk 14,713 (42,153)  
Other factors (122,317) 0  
Total | Residential Portfolio Segment      
SEC Schedule, 12-29, Real Estate Companies, Investment in Movement in Mortgage Loans on Real Estate [Roll Forward]      
Balance, beginning 6,968,370 4,476,327  
Balance, ending 5,889,882 6,968,370 4,476,327
Loans Held-for-Investment | Residential Portfolio Segment      
SEC Schedule, 12-29, Real Estate Companies, Investment in Movement in Mortgage Loans on Real Estate [Roll Forward]      
Balance, beginning 925,706 735,318  
Ditech Acquisition   381,039  
Fair value adjustment due to fair value option (6,020)    
Originations 0 0  
Sales 0 0  
Purchases/additional fundings 0 0  
Proceeds from repayments (145,767) (119,195)  
Transfer of loans to other assets 0 0  
Transfer of loans to real estate owned (6,754) (20,710)  
Transfers of loans to held for sale (62,274) (80,659)  
Transfer of loans from held-for-investment 0 0  
Accretion of loan discount and other amortization   28,702  
Valuation provision on loans 0 (2,927)  
Changes in instrument-specific credit risk 27,036 4,138  
Other factors (57,748) 0  
Balance, ending 674,179 925,706 735,318
Loans Held-for-Sale | Loans Held-for-Sale, at Lower Cost or Fair Value | Residential Portfolio Segment      
SEC Schedule, 12-29, Real Estate Companies, Investment in Movement in Mortgage Loans on Real Estate [Roll Forward]      
Balance, beginning 1,429,052 932,480  
Ditech Acquisition   0  
Fair value adjustment due to fair value option 0    
Originations 0 0  
Sales (791,974) (495,925)  
Purchases/additional fundings 110,741 1,133,335  
Proceeds from repayments (99,845) (184,783)  
Transfer of loans to other assets (3,449) (10,154)  
Transfer of loans to real estate owned (21,681) (49,459)  
Transfers of loans to held for sale 0 0  
Transfer of loans from held-for-investment 0 80,659  
Accretion of loan discount and other amortization    
Valuation provision on loans 112,957 22,899  
Changes in instrument-specific credit risk 0 0  
Other factors 0 0  
Balance, ending 509,887 1,429,052 932,480
Loans Held-for-Sale | Loans Held-for-Sale, at Fair Value | Residential Portfolio Segment      
SEC Schedule, 12-29, Real Estate Companies, Investment in Movement in Mortgage Loans on Real Estate [Roll Forward]      
Balance, beginning 4,613,612 2,808,529  
Ditech Acquisition   618,297  
Fair value adjustment due to fair value option 0    
Originations 61,684,462 19,512,072  
Sales (64,692,996) (25,538,105)  
Purchases/additional fundings 3,322,369 7,499,614  
Proceeds from repayments (177,723) (235,937)  
Transfer of loans to other assets (22,255) (412)  
Transfer of loans to real estate owned (7,035) (4,155)  
Transfers of loans to held for sale 0  
Transfer of loans from held-for-investment 62,274 0  
Accretion of loan discount and other amortization    
Valuation provision on loans 0 0  
Changes in instrument-specific credit risk (12,323) (46,291)  
Other factors (64,569) 0  
Balance, ending $ 4,705,816 $ 4,613,612 $ 2,808,529