Skip to content

PositionGroupBuyingPowerParameters

QuantConnect.Securities.Positions.PositionGroupBuyingPowerParameters

PositionGroupBuyingPowerParameters(
    portfolio: SecurityPortfolioManager,
    position_group: IPositionGroup,
    direction: OrderDirection,
)

Bases: Object

Defines the parameters for IPositionGroupBuyingPowerModel.get_position_group_buying_power

Initializes a new instance of the PositionGroupBuyingPowerParameters class

Parameters:

Name Type Description Default
portfolio SecurityPortfolioManager

The algorithm's portfolio manager

required
position_group IPositionGroup

The position group

required
direction OrderDirection

The direction to compute buying power in

required

position_group

position_group: IPositionGroup

Gets the position group

portfolio

Gets the algorithm's portfolio manager

direction

direction: OrderDirection

Gets the direction in which buying power is to be computed