v3.24.3
Derivative financial instruments and hedging activities - Summary of Fair Value of Derivative Instruments (Detail) - CAD ($)
$ in Millions
Oct. 31, 2024
Oct. 31, 2023
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value $ 153,233 $ 145,795
Impact on Positive fair values (Derivative assets) of netting agreements that qualify for balance sheet offset (147,173) (98,663)
Derivative financial assets 150,612 142,450
Impact on Negative fair values (Derivative liabilities) of netting agreements that qualify for balance sheet offset (147,173) (98,663)
Derivative financial liabilities 163,763 142,629
Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 149,620 142,353
Negative gross fair value 159,438 132,616
Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 3,613 3,442
Negative gross fair value 6,194 12,538
Gross fair values before netting [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 153,233 145,795
Negative gross fair value 165,632 145,154
Net fair values after netting [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Derivative financial assets 150,612 142,450
Derivative financial liabilities 163,763 142,629
Interest rate contracts forward rate agreements [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 147 76
Negative gross fair value 68 24
Interest rate contracts swaps [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 21,155 26,320
Negative gross fair value 16,482 22,965
Interest rate contracts swaps [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 1,215 1,907
Negative gross fair value 3,100 7,436
Interest rate contracts options purchased [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 5,556 11,230
Interest rate contracts options written [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Negative gross fair value 6,049 11,776
Interest rate contracts [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 26,858 37,626
Negative gross fair value 22,599 34,765
Interest rate contracts [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 1,215 1,907
Negative gross fair value 3,100 7,436
Foreign exchange contracts forward contracts [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 26,339 22,972
Negative gross fair value 23,758 22,655
Foreign exchange contracts forward contracts [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 1,235 860
Negative gross fair value 682 509
Foreign exchange contracts cross currency swaps [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 7,316 7,370
Negative gross fair value 4,912 5,815
Foreign exchange contracts cross currency swaps [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 207  
Negative gross fair value 46  
Foreign exchange contracts cross currency interest rate swaps [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 60,105 55,268
Negative gross fair value 59,733 46,550
Foreign exchange contracts cross currency interest rate swaps [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 874 555
Negative gross fair value 2,287 4,484
Foreign exchange contracts options purchased [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 2,407 2,623
Foreign exchange contracts options written [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Negative gross fair value 1,800 1,790
Foreign exchange contracts [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 96,167 88,233
Negative gross fair value 90,203 76,810
Foreign exchange contracts [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 2,316 1,415
Negative gross fair value 3,015 4,993
Credit derivatives [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 270 175
Negative gross fair value 216 176
Credit derivatives [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 3 49
Negative gross fair value 2  
Other contracts [member] | Held or issued for trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 26,325 16,319
Negative gross fair value 46,420 20,865
Other contracts [member] | Held or issued for other-than-trading purposes [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Positive gross fair value 79 71
Negative gross fair value 77 109
Valuation adjustments determined on a pooled basis [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Derivative asset valuation adjustments determined on a pooled basis (1,053) (1,801)
Derivative liability valuation adjustments determined on a pooled basis (301) (981)
Impact Of Netting Agreements [member]    
Disclosure Derivative Financial Instruments And Hedging Activities [line items]    
Impact on Positive fair values (Derivative assets) of netting agreements that qualify for balance sheet offset (1,568) (1,544)
Impact on Negative fair values (Derivative liabilities) of netting agreements that qualify for balance sheet offset $ (1,568) $ (1,544)