Lean
$LEAN_TAG$
|
Provides a volatility model that wraps a PyObject object that represents a model that computes the volatility of a security More...
Public Member Functions | |
VolatilityModelPythonWrapper (PyObject model) | |
Constructor for initialising the VolatilityModelPythonWrapper class with wrapped PyObject object More... | |
override void | Update (Security security, BaseData data) |
Updates this model using the new price information in the specified security instance More... | |
override IEnumerable< HistoryRequest > | GetHistoryRequirements (Security security, DateTime utcTime) |
Returns history requirements for the volatility model expressed in the form of history request More... | |
override void | SetSubscriptionDataConfigProvider (ISubscriptionDataConfigProvider subscriptionDataConfigProvider) |
Sets the ISubscriptionDataConfigProvider instance to use. More... | |
Public Member Functions inherited from QuantConnect.Securities.Volatility.BaseVolatilityModel | |
IEnumerable< HistoryRequest > | GetHistoryRequirements (Security security, DateTime utcTime, Resolution? resolution, int barCount) |
Gets history requests required for warming up the greeks with the provided resolution More... | |
Properties | |
override decimal | Volatility [get] |
Gets the volatility of the security as a percentage More... | |
Properties inherited from QuantConnect.Securities.Volatility.BaseVolatilityModel | |
ISubscriptionDataConfigProvider | SubscriptionDataConfigProvider [get, set] |
Provides access to registered SubscriptionDataConfig More... | |
virtual decimal | Volatility [get] |
Gets the volatility of the security as a percentage More... | |
Properties inherited from QuantConnect.Securities.IVolatilityModel | |
decimal | Volatility [get] |
Gets the volatility of the security as a percentage More... | |
Provides a volatility model that wraps a PyObject object that represents a model that computes the volatility of a security
Definition at line 29 of file VolatilityModelPythonWrapper.cs.
QuantConnect.Python.VolatilityModelPythonWrapper.VolatilityModelPythonWrapper | ( | PyObject | model | ) |
Constructor for initialising the VolatilityModelPythonWrapper class with wrapped PyObject object
model | Represents a model that computes the volatility of a security |
Definition at line 37 of file VolatilityModelPythonWrapper.cs.
|
virtual |
Updates this model using the new price information in the specified security instance
security | The security to calculate volatility for |
data | The new data used to update the model |
Reimplemented from QuantConnect.Securities.Volatility.BaseVolatilityModel.
Definition at line 59 of file VolatilityModelPythonWrapper.cs.
|
virtual |
Returns history requirements for the volatility model expressed in the form of history request
security | The security of the request |
utcTime | The date/time of the request |
Reimplemented from QuantConnect.Securities.Volatility.BaseVolatilityModel.
Definition at line 70 of file VolatilityModelPythonWrapper.cs.
|
virtual |
Sets the ISubscriptionDataConfigProvider instance to use.
subscriptionDataConfigProvider | Provides access to registered SubscriptionDataConfig |
Reimplemented from QuantConnect.Securities.Volatility.BaseVolatilityModel.
Definition at line 79 of file VolatilityModelPythonWrapper.cs.
|
get |
Gets the volatility of the security as a percentage
Definition at line 46 of file VolatilityModelPythonWrapper.cs.