XML 120 R110.htm IDEA: XBRL DOCUMENT v3.20.2
Fair value of financial instruments - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Sep. 30, 2020
Sep. 30, 2019
Dec. 31, 2019
Mortgage Loans          
Fair Value Measurement Inputs and Valuation Techniques [Line Items]          
Net (losses) gains from fair value changes of mortgage loans $ 20,378 $ 3,291 $ 6,512 $ 2,329  
GNMA          
Fair Value Measurement Inputs and Valuation Techniques [Line Items]          
Delinquent GNMA loans that had been previously sold $ 129,644   $ 129,644   $ 51,705