HasSufficientPositionGroupBuyingPowerForOrderParameters
QuantConnect.Securities.Positions.HasSufficientPositionGroupBuyingPowerForOrderParameters
HasSufficientPositionGroupBuyingPowerForOrderParameters(
portfolio: SecurityPortfolioManager,
position_group: IPositionGroup,
orders: List[Order],
)
Bases: Object
Defines the parameters for IPositionGroupBuyingPowerModel.has_sufficient_buying_power_for_order
Initializes a new instance of the HasSufficientPositionGroupBuyingPowerForOrderParameters class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
portfolio
|
SecurityPortfolioManager
|
The algorithm's portfolio manager |
required |
position_group
|
IPositionGroup
|
The position group |
required |
orders
|
List[Order]
|
The orders |
required |
position_group
position_group: IPositionGroup
Gets the position group representing the holdings changes contemplated by the order
error
error(
reason: str,
) -> HasSufficientBuyingPowerForOrderResult
Creates a new result indicating that there was an error
insufficient
insufficient(
reason: str,
) -> HasSufficientBuyingPowerForOrderResult
Creates a new result indicating that there is insufficient buying power for the contemplated order
sufficient
sufficient() -> HasSufficientBuyingPowerForOrderResult
Creates a new result indicating that there is sufficient buying power for the contemplated order