Quarterly report pursuant to Section 13 or 15(d)

Securities Financing Agreements, Collateral and Restricted Cash - Remaining Contractual Maturity (Details)

v3.23.2
Securities Financing Agreements, Collateral and Restricted Cash - Remaining Contractual Maturity (Details)
$ in Millions
6 Months Ended 12 Months Ended
Jun. 30, 2023
USD ($)
agreement
Dec. 31, 2022
USD ($)
agreement
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 553,013 $ 453,492
Securities loaned 78,470 72,416
Other 10,088 8,427
Total $ 641,571 $ 534,335
Number of contractual agreements | agreement 0 0
Maximum agreement maturity period (less than) 4 years 4 years
Overnight and Continuous    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase $ 263,441 $ 200,087
Securities loaned 73,488 66,909
Other 10,088 8,427
Total 347,017 275,423
30 Days or Less    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 204,840 181,632
Securities loaned 106 288
Other 0 0
Total 204,946 181,920
After 30 Days Through 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 58,881 41,666
Securities loaned 805 1,139
Other 0 0
Total 59,686 42,805
Greater than 90 Days    
Remaining Contractual Maturity    
Securities sold under agreements to repurchase 25,851 30,107
Securities loaned 4,071 4,080
Other 0 0
Total $ 29,922 $ 34,187