XML 133 R56.htm IDEA: XBRL DOCUMENT v3.22.4
Investments in Securities - Investments In Trading Securities (Details) - USD ($)
$ in Millions
Dec. 31, 2022
Dec. 31, 2021
Schedule of Investments in Trading Securities [Line Items]    
Trading, at fair value $ 50,129 $ 88,206
Mortgage-related securities    
Schedule of Investments in Trading Securities [Line Items]    
Trading, at fair value 3,211 4,606
Mortgage-related securities | Consolidated Trusts    
Schedule of Investments in Trading Securities [Line Items]    
Trading, at fair value 427 593
Non-mortgage-related securities    
Schedule of Investments in Trading Securities [Line Items]    
Trading, at fair value 46,918 83,600
Non-mortgage-related securities | Pledged as collateral    
Schedule of Investments in Trading Securities [Line Items]    
Trading, at fair value $ 3,900 $ 4,200