| Schedule of Repurchase Agreements by Maturity | At June 30, 2023 and December 31, 2022, the Company’s repurchase agreements had the following characteristics and remaining maturities: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | June 30, 2023 |  
|  | Collateral Type |  |  |  
| (in thousands) | Agency RMBS |  |  |  | Non-Agency Securities |  | Agency Derivatives |  |  |  | Mortgage Servicing Rights |  | 
U.S. Treasuries (1)
 |  | Total Amount Outstanding |  
| Within 30 days | $ | 3,133,072 |  |  |  |  | $ | 23,602 |  |  | $ | 3,329 |  |  |  |  | $ | — |  |  | $ | — |  |  | $ | 3,160,003 |  |  
| 30 to 59 days | 1,809,482 |  |  |  |  | 23,818 |  |  | — |  |  |  |  | — |  |  | — |  |  | 1,833,300 |  |  
| 60 to 89 days | 1,432,666 |  |  |  |  | 183 |  |  | 354 |  |  |  |  | — |  |  | — |  |  | 1,433,203 |  |  
| 90 to 119 days | 1,330,683 |  |  |  |  | — |  |  | 8,630 |  |  |  |  | — |  |  | — |  |  | 1,339,313 |  |  
| 120 to 364 days | 1,042,005 |  |  |  |  | — |  |  | — |  |  |  |  | 260,000 |  |  | — |  |  | 1,302,005 |  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| Total | $ | 8,747,908 |  |  |  |  | $ | 47,603 |  |  | $ | 12,313 |  |  |  |  | $ | 260,000 |  |  | $ | — |  |  | $ | 9,067,824 |  |  
| Weighted average borrowing rate | 5.23 | % |  |  |  | 6.61 | % |  | 5.72 | % |  |  |  | 8.67 | % |  | — | % |  | 5.33 | % | 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | December 31, 2022 |  
|  | Collateral Type |  |  |  
| (in thousands) | Agency RMBS |  |  |  | Non-Agency Securities |  | Agency Derivatives |  |  |  | Mortgage Servicing Rights |  | 
U.S. Treasuries (1)
 |  | Total Amount Outstanding |  
| Within 30 days | $ | 2,570,254 |  |  |  | $ | 59,648 |  | $ | 4,177 |  |  |  | $ | — |  | $ | 57,116 |  | $ | 2,691,195 |  
| 30 to 59 days | 1,774,622 |  |  |  | 10,984 |  | — |  |  |  | — |  | 375,131 |  | 2,160,737 |  
| 60 to 89 days | 2,280,675 |  |  |  | 177 |  | 503 |  |  |  | — |  | 255,282 |  | 2,536,637 |  
| 90 to 119 days | 696,283 |  |  |  | — |  | 8,393 |  |  |  | — |  | 200,766 |  | 905,442 |  
| 120 to 364 days | — |  |  |  | — |  | — |  |  |  | 309,000 |  | — |  | 309,000 |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| Total | $ | 7,321,834 |  |  |  | $ | 70,809 |  | $ | 13,073 |  |  |  | $ | 309,000 |  | $ | 888,295 |  | $ | 8,603,011 |  
| Weighted average borrowing rate | 3.70 | % |  |  |  | 5.73 | % |  | 4.83 | % |  |  |  | 7.91 | % |  | 4.49 | % |  | 3.95 | % | ____________________ 
(1)U.S. Treasury securities effectively borrowed under reverse repurchase agreements.
 | 
| Schedule of Underlying Assets of Repurchase Agreements when Amount of Repurchase Agreements Exceeds 10 Percent of Assets | The following table summarizes assets at carrying values that are pledged or restricted as collateral for the future payment obligations of the Company’s repurchase agreements: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
| (in thousands) | June 30, 2023
 |  | December 31, 2022
 |  
| Available-for-sale securities, at fair value | $ | 8,900,438 |  |  | $ | 7,426,953 |  |  
|  |  |  |  |  
|  |  |  |  |  
| 
Mortgage servicing rights, at fair value (1)
 | 432,838 |  |  | 667,238 |  |  
|  |  |  |  |  
| Restricted cash | 277,940 |  |  | 324,654 |  |  
| Due from counterparties | 248,607 |  |  | 22,055 |  |  
| Derivative assets, at fair value | 12,089 |  |  | 14,738 |  |  
| 
U.S. Treasuries (2)
 | — |  |  | 877,632 |  |  
| Total | $ | 9,871,912 |  |  | $ | 9,333,270 |  | ____________________ 
(1)MSR repurchase agreements are secured by a VFN issued in connection with the Company’s securitization of MSR, which is collateralized by the Company’s MSR.
 
(2)U.S. Treasury securities effectively borrowed under reverse repurchase agreements..
 |