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
6 Months Ended 12 Months Ended
Jun. 30, 2018
Dec. 31, 2017
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 284,786 $ 290,895
Securities loaned 20,182 21,687
Other 21,063 22,711
Total $ 326,031 $ 335,293
Maximum agreement maturity period (less than) 3 years 3 years
Overnight and Continuous    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 125,778 $ 125,956
Securities loaned 12,671 9,853
Other 21,063 22,711
Total 159,512 158,520
30 Days or Less    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 81,805 79,913
Securities loaned 236 5,658
Other 0 0
Total 82,041 85,571
After 30 Days Through 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 32,591 46,091
Securities loaned 2,353 2,043
Other 0 0
Total 34,944 48,134
Greater than 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 44,612 38,935
Securities loaned 4,922 4,133
Other 0 0
Total $ 49,534 $ 43,068