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.21.2
Federal Funds Sold or Purchased, Securities Financing Agreements, Short-term Borrowings and Restricted Cash - Remaining Contractual Maturity (Details)
$ in Millions
6 Months Ended 12 Months Ended
Jun. 30, 2021
USD ($)
agreement
Dec. 31, 2020
USD ($)
agreement
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 430,602 $ 335,681
Securities loaned 39,537 22,971
Other 15,071 16,210
Total $ 485,210 $ 374,862
Number of contractual agreements | agreement 0 0
Maximum agreement maturity period (less than) 3 years 3 years
Overnight and Continuous    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 187,994 $ 158,400
Securities loaned 34,167 19,140
Other 15,071 16,210
Total 237,232 193,750
30 Days or Less    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 164,693 122,448
Securities loaned 11 271
Other 0 0
Total 164,704 122,719
After 30 Days Through 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 33,069 32,149
Securities loaned 1,226 1,029
Other 0 0
Total 34,295 33,178
Greater than 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 44,846 22,684
Securities loaned 4,133 2,531
Other 0 0
Total $ 48,979 $ 25,215