HasSufficientBuyingPowerForOrderResult
QuantConnect.Securities.HasSufficientBuyingPowerForOrderResult
HasSufficientBuyingPowerForOrderResult(
is_sufficient: bool, reason: str = None
)
Bases: Object
Contains the information returned by IBuyingPowerModel.has_sufficient_buying_power_for_order
Initializes a new instance of the HasSufficientBuyingPowerForOrderResult class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
is_sufficient
|
bool
|
True if the order can be executed |
required |
reason
|
str
|
The reason for insufficient buying power |
None
|
is_sufficient
is_sufficient: bool
Gets true if there is sufficient buying power to execute an order
reason
reason: str
Gets the reason for insufficient buying power to execute an order