Lean
$LEAN_TAG$
|
Provides an implementation of IExecutionModel that wraps a PyObject object More...
Public Member Functions | |
ExecutionModelPythonWrapper (PyObject model) | |
Constructor for initialising the IExecutionModel class with wrapped PyObject object More... | |
override void | Execute (QCAlgorithm algorithm, IPortfolioTarget[] targets) |
Submit orders for the specified portfolio targets. This model is free to delay or spread out these orders as it sees fit 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 IExecutionModel that wraps a PyObject object
Definition at line 27 of file ExecutionModelPythonWrapper.cs.
QuantConnect.Algorithm.Framework.Execution.ExecutionModelPythonWrapper.ExecutionModelPythonWrapper | ( | PyObject | model | ) |
Constructor for initialising the IExecutionModel class with wrapped PyObject object
model | Model defining how to execute trades to reach a portfolio target |
Definition at line 35 of file ExecutionModelPythonWrapper.cs.
|
virtual |
Submit orders for the specified portfolio targets. This model is free to delay or spread out these orders as it sees fit
algorithm | The algorithm instance |
targets | The portfolio targets to be ordered |
Reimplemented from QuantConnect.Algorithm.Framework.Execution.ExecutionModel.
Definition at line 53 of file ExecutionModelPythonWrapper.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.Execution.ExecutionModel.
Definition at line 63 of file ExecutionModelPythonWrapper.cs.