When trading option spreads, i run into the ‘insufficient buying power’ error, because the default buying power model is being used. I see there is a new model that calculates the right margin for spreads, but I'm not sure how to use it.
Are there any examples of how to use OptionStrategyPositionGroupBuyingPowerModel?
I see it takes an OptionStrategy in the constructor, but I'm not sure if this means i have to create a new one for every strategy i trade, or if it just uses this once, to initialize itself.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!