In python I want to set my option position to 5% of the buying power. I was considering using a loop with an increasing mulitple on every loop until the mulitiple * the contracts ask price is close to 5% of my buying power. Then use that multiple as the number of contracts to purchase However, I can't seem to find the funciton/class in python that will give me my account's buying power.

Author