Quarterly report pursuant to Section 13 or 15(d)

Federal Funds Sold or Purchased, Securities Financing Agreements, Short-term Borrowings and Restricted Cash - Remaining Contractual Maturity (Details)

v3.10.0.1
Federal Funds Sold or Purchased, Securities Financing Agreements, Short-term Borrowings and Restricted Cash - Remaining Contractual Maturity (Details) - USD ($)
$ in Millions
9 Months Ended 12 Months Ended
Sep. 30, 2018
Dec. 31, 2017
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 278,083 $ 290,895
Securities loaned 19,080 21,687
Other 24,446 22,711
Total $ 321,609 $ 335,293
Maximum agreement maturity period (less than) 3 years 3 years
Overnight and Continuous    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 128,222 $ 125,956
Securities loaned 13,364 9,853
Other 24,446 22,711
Total 166,032 158,520
30 Days or Less    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 68,852 79,913
Securities loaned 738 5,658
Other 0 0
Total 69,590 85,571
After 30 Days Through 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 22,920 46,091
Securities loaned 896 2,043
Other 0 0
Total 23,816 48,134
Greater than 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 58,089 38,935
Securities loaned 4,082 4,133
Other 0 0
Total $ 62,171 $ 43,068