|
Lean
$LEAN_TAG$
|
Defines the parameters for IBuyingPowerModel.GetBuyingPower More...
Public Member Functions | |
| BuyingPowerParameters (SecurityPortfolioManager portfolio, Security security, OrderDirection direction) | |
| Initializes a new instance of the BuyingPowerParameters class More... | |
| BuyingPower | Result (decimal buyingPower, string currency) |
| Creates the result using the specified buying power More... | |
| BuyingPower | ResultInAccountCurrency (decimal buyingPower) |
| Creates the result using the specified buying power in units of the account currency More... | |
Properties | |
| Security | Security [get] |
| Gets the security More... | |
| SecurityPortfolioManager | Portfolio [get] |
| Gets the algorithm's portfolio More... | |
| OrderDirection | Direction [get] |
| Gets the direction in which buying power is to be computed More... | |
Defines the parameters for IBuyingPowerModel.GetBuyingPower
Definition at line 23 of file BuyingPowerParameters.cs.
| QuantConnect.Securities.BuyingPowerParameters.BuyingPowerParameters | ( | SecurityPortfolioManager | portfolio, |
| Security | security, | ||
| OrderDirection | direction | ||
| ) |
Initializes a new instance of the BuyingPowerParameters class
| portfolio | The algorithm's portfolio |
| security | The security |
| direction | The direction to compute buying power in |
Definition at line 46 of file BuyingPowerParameters.cs.
| BuyingPower QuantConnect.Securities.BuyingPowerParameters.Result | ( | decimal | buyingPower, |
| string | currency | ||
| ) |
Creates the result using the specified buying power
| buyingPower | The buying power |
| currency | The units the buying power is denominated in |
Definition at line 59 of file BuyingPowerParameters.cs.
| BuyingPower QuantConnect.Securities.BuyingPowerParameters.ResultInAccountCurrency | ( | decimal | buyingPower | ) |
Creates the result using the specified buying power in units of the account currency
| buyingPower | The buying power |
Definition at line 70 of file BuyingPowerParameters.cs.
|
get |
Gets the security
Definition at line 28 of file BuyingPowerParameters.cs.
|
get |
Gets the algorithm's portfolio
Definition at line 33 of file BuyingPowerParameters.cs.
|
get |
Gets the direction in which buying power is to be computed
Definition at line 38 of file BuyingPowerParameters.cs.