Fair value measurements - Summary of valuation techniques (Details) $ in Thousands | Jun. 30, 2021USD ($)$ / shares | Dec. 31, 2020USD ($)$ / shares |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, fair value | $ 732,196 | $ 613,546 |
Level 3 | Discounted Cash Flow | Residential Mortgage | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, fair value | $ 982,331 | $ 426,709 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Discount Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.0162 | 0.0450 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Discount Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.1000 | 0.1000 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Discount Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.0342 | 0.0501 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Prepayment Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.0441 | 0.0430 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Prepayment Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.3762 | 0.0931 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Prepayment Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.1440 | 0.0728 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Collateral Losses | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.0005 | 0.0166 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Collateral Losses | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.0465 | 0.0575 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Collateral Losses | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.0096 | 0.0258 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Loss Severity | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | (0.1561) | (0.0929) |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Loss Severity | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.2681 | 0.4943 |
Level 3 | Discounted Cash Flow | Residential Mortgage | Measurement Input, Loss Severity | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.1199 | 0.1568 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, fair value | $ 1,183 | $ 1,601 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Discount Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0837 | 0.0805 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Discount Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0837 | 0.0805 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Discount Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0837 | 0.0805 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Prepayment Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0541 | 0.0546 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Prepayment Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0541 | 0.0546 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Prepayment Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0541 | 0.0546 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Collateral Losses | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0292 | 0.0537 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Collateral Losses | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0292 | 0.0537 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Collateral Losses | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | 0.0292 | 0.0537 |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Loss Severity | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | (0.3009) | (0.2089) |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Loss Severity | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | (0.3009) | (0.2089) |
Level 3 | Discounted Cash Flow | Non-Agency RMBS | Measurement Input, Loss Severity | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | (0.3009) | (0.2089) |
Level 3 | Discounted Cash Flow | Commercial Loan | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, fair value | $ 62,279 | $ 125,508 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Discount Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.1012 | 0.1095 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Discount Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.3006 | 0.3954 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Discount Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.1328 | 0.1409 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Credit Spread | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 9.01 | 0.1001 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Credit Spread | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 25.68 | 0.3304 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Credit Spread | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 11.85 | 0.1279 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Recovery Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 1 | 1 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Recovery Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 1 | 1 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Recovery Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 1 | 1 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Loan-To-Value | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.4810 | 0.4360 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Loan-To-Value | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.9270 | 0.9750 |
Level 3 | Discounted Cash Flow | Commercial Loan | Measurement Input, Loan-To-Value | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 0.7346 | 0.6204 |
Level 3 | Discounted Cash Flow | Excess Mortgage Servicing Rights | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, fair value | $ 2,521 | $ 3,073 |
Level 3 | Discounted Cash Flow | Excess Mortgage Servicing Rights | Measurement Input, Discount Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | 0.0900 | 0.0900 |
Level 3 | Discounted Cash Flow | Excess Mortgage Servicing Rights | Measurement Input, Discount Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | 0.0970 | 0.0970 |
Level 3 | Discounted Cash Flow | Excess Mortgage Servicing Rights | Measurement Input, Discount Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | 0.0909 | 0.0908 |
Level 3 | Discounted Cash Flow | Excess Mortgage Servicing Rights | Measurement Input, Prepayment Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | 0.1097 | 0.1111 |
Level 3 | Discounted Cash Flow | Excess Mortgage Servicing Rights | Measurement Input, Prepayment Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | 0.1600 | 0.1551 |
Level 3 | Discounted Cash Flow | Excess Mortgage Servicing Rights | Measurement Input, Prepayment Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | 0.1206 | 0.1249 |
Level 3 | Discounted Cash Flow | Securitized debt | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, fair value | $ (482,533) | $ (355,159) |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Discount Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0098 | 0.0245 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Discount Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0500 | 0.0550 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Discount Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0204 | 0.0298 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Prepayment Rate | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0544 | 0.0590 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Prepayment Rate | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.1103 | 0.0820 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Prepayment Rate | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0865 | 0.0717 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Collateral Losses | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0036 | 0.0194 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Collateral Losses | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0327 | 0.0346 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Collateral Losses | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0142 | 0.0262 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Loss Severity | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.0849 | 0.1270 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Loss Severity | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.1697 | 0.2003 |
Level 3 | Discounted Cash Flow | Securitized debt | Measurement Input, Loss Severity | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Long-term debt, measurement input | 0.1233 | 0.1675 |
Level 3 | Consensus Pricing | Residential Mortgage | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, fair value | $ 5,684 | $ 6,598 |
Level 3 | Consensus Pricing | Residential Mortgage | Measurement Input, Offered Price | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | $ / shares | 85.67 | 82.03 |
Level 3 | Consensus Pricing | Residential Mortgage | Measurement Input, Offered Price | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | $ / shares | 113.14 | 106.29 |
Level 3 | Consensus Pricing | Residential Mortgage | Measurement Input, Offered Price | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | $ / shares | 104.07 | 99.96 |
Level 3 | Consensus Pricing | Non-Agency RMBS | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, fair value | | $ 1,499 |
Level 3 | Consensus Pricing | Non-Agency RMBS | Measurement Input, Offered Price | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | $ / shares | | 91.59 |
Level 3 | Consensus Pricing | Non-Agency RMBS | Measurement Input, Offered Price | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | $ / shares | | 91.59 |
Level 3 | Consensus Pricing | Non-Agency RMBS | Measurement Input, Offered Price | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Debt securities, measurement input | $ / shares | | 91.59 |
Level 3 | Consensus Pricing | Excess Mortgage Servicing Rights | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, fair value | $ 87 | $ 85 |
Level 3 | Consensus Pricing | Excess Mortgage Servicing Rights | Measurement Input, Offered Price | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | $ / shares | 0.30 | 0.25 |
Level 3 | Consensus Pricing | Excess Mortgage Servicing Rights | Measurement Input, Offered Price | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | $ / shares | 0.30 | 0.25 |
Level 3 | Consensus Pricing | Excess Mortgage Servicing Rights | Measurement Input, Offered Price | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Servicing asset, measurement input | $ / shares | 0.30 | 0.25 |
Level 3 | Comparable Multiple | AG Arc | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, fair value | $ 50,862 | $ 45,341 |
Level 3 | Comparable Multiple | AG Arc | Measurement Input, Book Value Multiple | Minimum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 1.06 | 1.05 |
Level 3 | Comparable Multiple | AG Arc | Measurement Input, Book Value Multiple | Maximum | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 1.06 | 1.05 |
Level 3 | Comparable Multiple | AG Arc | Measurement Input, Book Value Multiple | Weighted Average | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, measurement input | 1.06 | 1.05 |
Level 3 | Recent Transaction | Residential Mortgage | | |
Fair Value Measurement Inputs and Valuation Techniques [Line Items] | | |
Loans held-for-sale, fair value | $ 40,363 | |