Hi everyone!

I tried to use the following code:

  1. self.Portfolio["AAPL"].GetBuyingPower

during live-trading with my IBKR account to get the buying power for AAPL, but I keep getting the cash available in my account, is there a way for us to get the cash + margin buying power?

Author

Cheng Li

January 2022