Lean
$LEAN_TAG$
|
Defines the parameters for IBuyingPowerModel.HasSufficientBuyingPowerForOrder More...
Public Member Functions | |
HasSufficientBuyingPowerForOrderParameters (SecurityPortfolioManager portfolio, Security security, Order order) | |
Initializes a new instance of the HasSufficientBuyingPowerForOrderParameters class More... | |
HasSufficientBuyingPowerForOrderParameters | ForUnderlying (Order order) |
Creates a new HasSufficientBuyingPowerForOrderParameters targeting the security's underlying. If the security does not implement IDerivativeSecurity then an InvalidCastException will be thrown. If the order's symbol does not match the underlying then an ArgumentException will be thrown. More... | |
HasSufficientBuyingPowerForOrderResult | Sufficient () |
Creates a new result indicating that there is sufficient buying power for the contemplated order More... | |
HasSufficientBuyingPowerForOrderResult | Insufficient (string reason) |
Creates a new result indicating that there is insufficient buying power for the contemplated order More... | |
HasSufficientBuyingPowerForOrderResult | Insufficient (FormattableString reason) |
Creates a new result indicating that there is insufficient buying power for the contemplated order More... | |
Properties | |
SecurityPortfolioManager | Portfolio [get] |
Gets the algorithm's portfolio More... | |
Security | Security [get] |
Gets the security More... | |
Order | Order [get] |
Gets the order More... | |
Defines the parameters for IBuyingPowerModel.HasSufficientBuyingPowerForOrder
Definition at line 25 of file HasSufficientBuyingPowerForOrderParameters.cs.
QuantConnect.Securities.HasSufficientBuyingPowerForOrderParameters.HasSufficientBuyingPowerForOrderParameters | ( | SecurityPortfolioManager | portfolio, |
Security | security, | ||
Order | order | ||
) |
Initializes a new instance of the HasSufficientBuyingPowerForOrderParameters class
portfolio | The algorithm's portfolio |
security | The security |
order | The order |
Definition at line 48 of file HasSufficientBuyingPowerForOrderParameters.cs.
HasSufficientBuyingPowerForOrderParameters QuantConnect.Securities.HasSufficientBuyingPowerForOrderParameters.ForUnderlying | ( | Order | order | ) |
Creates a new HasSufficientBuyingPowerForOrderParameters targeting the security's underlying. If the security does not implement IDerivativeSecurity then an InvalidCastException will be thrown. If the order's symbol does not match the underlying then an ArgumentException will be thrown.
order | The new order targeting the underlying |
Definition at line 63 of file HasSufficientBuyingPowerForOrderParameters.cs.
HasSufficientBuyingPowerForOrderResult QuantConnect.Securities.HasSufficientBuyingPowerForOrderParameters.Sufficient | ( | ) |
Creates a new result indicating that there is sufficient buying power for the contemplated order
Definition at line 72 of file HasSufficientBuyingPowerForOrderParameters.cs.
HasSufficientBuyingPowerForOrderResult QuantConnect.Securities.HasSufficientBuyingPowerForOrderParameters.Insufficient | ( | string | reason | ) |
Creates a new result indicating that there is insufficient buying power for the contemplated order
Definition at line 80 of file HasSufficientBuyingPowerForOrderParameters.cs.
HasSufficientBuyingPowerForOrderResult QuantConnect.Securities.HasSufficientBuyingPowerForOrderParameters.Insufficient | ( | FormattableString | reason | ) |
Creates a new result indicating that there is insufficient buying power for the contemplated order
Definition at line 88 of file HasSufficientBuyingPowerForOrderParameters.cs.
|
get |
Gets the algorithm's portfolio
Definition at line 30 of file HasSufficientBuyingPowerForOrderParameters.cs.
|
get |
Gets the security
Definition at line 35 of file HasSufficientBuyingPowerForOrderParameters.cs.
|
get |
Gets the order
Definition at line 40 of file HasSufficientBuyingPowerForOrderParameters.cs.