Collateralized Agreements and Financings - Schedule of Repurchase Agreements and Securities Loaned (Detail) - USD ($) $ in Millions |
Jun. 30, 2021 |
Dec. 31, 2020 |
|---|---|---|
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | $ 265,493 | $ 224,328 |
| Securities loaned | 42,536 | $ 27,054 |
| No Stated Maturity and Overnight [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 102,727 | |
| Securities loaned | 25,544 | |
| 2 - 30 Days [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 66,897 | |
| Securities loaned | 90 | |
| 31 - 90 Days [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 28,944 | |
| Securities loaned | 109 | |
| 91 Days - 1 Year [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 57,363 | |
| Securities loaned | 15,490 | |
| Greater than 1 Year [Member] | ||
| Offsetting Liabilities [Line Items] | ||
| Repurchase agreements | 9,562 | |
| Securities loaned | $ 1,303 |