Lean
$LEAN_TAG$
|
Provides an implementation of IRiskManagementModel that wraps a PyObject object More...
Public Member Functions | |
RiskManagementModelPythonWrapper (PyObject model) | |
Constructor for initialising the IRiskManagementModel class with wrapped PyObject object More... | |
override IEnumerable< IPortfolioTarget > | ManageRisk (QCAlgorithm algorithm, IPortfolioTarget[] targets) |
Manages the algorithm's risk at each time step More... | |
override void | OnSecuritiesChanged (QCAlgorithm algorithm, SecurityChanges changes) |
Event fired each time the we add/remove securities from the data feed More... | |
Provides an implementation of IRiskManagementModel that wraps a PyObject object
Definition at line 27 of file RiskManagementModelPythonWrapper.cs.
QuantConnect.Algorithm.Framework.Risk.RiskManagementModelPythonWrapper.RiskManagementModelPythonWrapper | ( | PyObject | model | ) |
Constructor for initialising the IRiskManagementModel class with wrapped PyObject object
model | Model defining how risk is managed |
Definition at line 35 of file RiskManagementModelPythonWrapper.cs.
|
virtual |
Manages the algorithm's risk at each time step
algorithm | The algorithm instance |
targets | The current portfolio targets to be assessed for risk |
Reimplemented from QuantConnect.Algorithm.Framework.Risk.RiskManagementModel.
Definition at line 45 of file RiskManagementModelPythonWrapper.cs.
|
virtual |
Event fired each time the we add/remove securities from the data feed
algorithm | The algorithm instance that experienced the change in securities |
changes | The security additions and removals from the algorithm |
Reimplemented from QuantConnect.Algorithm.Framework.Risk.RiskManagementModel.
Definition at line 55 of file RiskManagementModelPythonWrapper.cs.