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.8.0.1
Federal Funds Sold or Purchased, Securities Financing Agreements, Short-term Borrowings and Restricted Cash - Remaining Contractual Maturity (Details) - USD ($)
$ in Millions
3 Months Ended 12 Months Ended
Mar. 31, 2018
Dec. 31, 2017
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 293,893 $ 290,895
Securities loaned 21,697 21,687
Other 20,048 22,711
Total $ 335,638 $ 335,293
Maximum agreement maturity period (less than) 3 years 3 years
Overnight and Continuous    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 112,400 $ 125,956
Securities loaned 14,727 9,853
Other 20,048 22,711
Total 147,175 158,520
30 Days or Less    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 90,486 79,913
Securities loaned 258 5,658
Other 0 0
Total 90,744 85,571
After 30 Days Through 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 38,437 46,091
Securities loaned 2,130 2,043
Other 0 0
Total 40,567 48,134
Greater than 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 52,570 38,935
Securities loaned 4,582 4,133
Other 0 0
Total $ 57,152 $ 43,068