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.

 

Author