Investments in Securities and Other Assets | INVESTMENTS IN SECURITIES The available-for-sale investments portfolio consisted of the following as of March 31, 2018 and December 31, 2017 (dollars in thousands): March 31, 2018 Asset Type Amortized Cost Gross Unrealized Loss Gross Unrealized Gain Fair Value Fannie Mae Certificates Fixed Rate $ 7,036,143 $ (100,604 ) $ 9,570 $ 6,945,109 ARMs 338,207 (6,743 ) 182 331,646 Total Fannie Mae 7,374,350 (107,347 ) 9,752 7,276,755 Freddie Mac Certificates Fixed Rate 4,146,859 (69,501 ) 3,842 4,081,200 ARMs 155,569 (4,244 ) 49 151,374 Total Freddie Mac 4,302,428 (73,745 ) 3,891 4,232,574 Ginnie Mae Certificates Fixed Rate 26,468 (79 ) 242 26,631 ARMs — — — — Ginnie Mae Certificates - ARMs 26,468 (79 ) 242 26,631 Total Agency RMBS 11,703,246 (181,171 ) 13,885 11,535,960 U.S. Treasuries — — — — Total $ 11,703,246 $ (181,171 ) $ 13,885 $ 11,535,960 December 31, 2017 Asset Type Amortized Cost Gross Unrealized Loss Gross Unrealized Gain Fair Value Fannie Mae Certificates Fixed Rate $ 7,117,481 $ (20,470 ) $ 23,067 $ 7,120,078 ARMs 273,660 (2,647 ) 1,101 272,114 Total Fannie Mae 7,391,141 (23,117 ) 24,168 7,392,192 Freddie Mac Certificates Fixed Rate 3,968,358 (11,045 ) 10,142 3,967,455 ARMs 200,405 (1,028 ) 329 199,706 Total Freddie Mac 4,168,763 (12,073 ) 10,471 4,167,161 Ginnie Mae Certificates Fixed Rate 1,602 (45 ) — 1,557 ARMs 26,460 — 350 26,810 Total Ginnie Mae 28,062 (45 ) 350 28,367 Total Agency RMBS 11,587,966 (35,235 ) 34,989 11,587,720 U.S. Treasuries 1,047,965 (1,031 ) — 1,046,934 Total $ 12,635,931 $ (36,266 ) $ 34,989 $ 12,634,654 The following table presents the gross unrealized loss and fair values of the Company's available-for-sale investments by length of time that such securities have been in a continuous unrealized loss position as of March 31, 2018 and December 31, 2017 (dollars in thousands): Unrealized loss positions Less than 12 Months Greater than 12 months Total As of Fair value Unrealized loss Fair value Unrealized loss Fair value Unrealized loss March 31, 2018 $ 8,022,082 $ (155,401 ) $ 723,584 $ (25,770 ) $ 8,745,666 $ (181,171 ) December 31, 2017 7,925,876 (36,170 ) 24,896 (96 ) 7,950,772 (36,266 ) The following table summarizes the Company’s available-for-sale investments as of March 31, 2018 and December 31, 2017 , according to their estimated remaining weighted-average maturity classifications: March 31, 2018 December 31, 2017 Fair Value Amortized Cost Fair Value Amortized Cost Less than one year $ — $ — $ 24,896 $ 24,992 Greater than one year through five years 2,636,903 2,673,340 5,137,370 5,143,680 Greater than five years through ten years 8,892,462 9,023,136 7,472,388 7,467,259 Greater than ten years 6,595 6,770 — — Total $ 11,535,960 $ 11,703,246 $ 12,634,654 $ 12,635,931 The following table summarizes our net realized gain (loss) from the sale of available-for-sale investments for the three months ended March 31, 2018 and 2017 (dollars in thousands): Three Months Ended March 31, 2018 2017 Available-for-sale investments, at cost $ 6,251,705 $ 3,598,492 Proceeds from sale of available-for-sale investments 6,180,514 3,532,448 Net realized gain (loss) on sale of available-for-sale investments $ (71,191 ) $ (66,044 ) Gross gain on sale of available-for-sale investments $ 15,072 $ 8,603 Gross (loss) on sale of available-for-sale investments (86,263 ) (74,647 ) Net realized gain (loss) on sale of available-for-sale investments $ (71,191 ) $ (66,044 ) The components of the carrying value of available-for-sale investments at March 31, 2018 and December 31, 2017 are presented below. The premium purchase price is generally due to the average coupon interest rates on these investments being higher than prevailing market rates and conversely, the discount purchase price is generally due to the average coupon interest rates on these investments being lower than prevailing market rates. (dollars in thousands) March 31, 2018 December 31, 2017 Principal balance $ 11,389,337 $ 12,275,352 Unamortized premium 314,319 362,676 Unamortized discount (410 ) (2,097 ) Gross unrealized gains 13,885 34,989 Gross unrealized losses (181,171 ) (36,266 ) Fair value $ 11,535,960 $ 12,634,654 As of March 31, 2018 , the weighted-average coupon interest rate on the Company's Agency RMBS was 3.55% . As of December 31, 2017 , the weighted-average coupon interest rate on the Company's Agency RMBS and U.S. Treasuries was 3.52% and 1.85% , respectively. Actual maturities of Agency RMBS are generally shorter than their stated contractual maturities (which range up to 30 years), because they are affected by the contractual lives of the underlying mortgages, periodic payments and principal prepayments. Credit Risk The Company believes it has minimal exposure to credit losses on its Debt Securities at March 31, 2018 and December 31, 2017 . Principal and interest payments on Agency RMBS are guaranteed by Freddie Mac and Fannie Mae, while principal and interest payments on Ginnie Mae RMBS and U.S. Treasuries are backed by the full faith and credit of the U.S. government. Since September 2008, both Freddie Mac and Fannie Mae have operated in the conservatorship of the U.S. government. As of March 31, 2018 , S&P maintained its AA+ rating for the U.S. government, while Fitch and Moody's rated the U.S. government AAA and Aaa, respectively. Since Fannie Mae and Freddie Mac are in U.S. government conservatorship, the implied credit ratings of Agency RMBS are similarly rated. Refer to Note 7, Fair Value Measurements , for details regarding the characterization of our investments in securities' within the fair value hierarchy. |