Lean
$LEAN_TAG$
|
Represents the model responsible for picking which orders should be executed during a margin call More...
Public Member Functions | |
List< SubmitOrderRequest > | GetMarginCallOrders (out bool issueMarginCallWarning) |
Scan the portfolio and the updated data for a potential margin call situation which may get the holdings below zero! If there is a margin call, liquidate the portfolio immediately before the portfolio gets sub zero. More... | |
List< OrderTicket > | ExecuteMarginCall (IEnumerable< SubmitOrderRequest > generatedMarginCallOrders) |
Executes synchronous orders to bring the account within margin requirements. More... | |
Represents the model responsible for picking which orders should be executed during a margin call
Definition at line 25 of file IMarginCallModel.cs.
List<SubmitOrderRequest> QuantConnect.Securities.IMarginCallModel.GetMarginCallOrders | ( | out bool | issueMarginCallWarning | ) |
Scan the portfolio and the updated data for a potential margin call situation which may get the holdings below zero! If there is a margin call, liquidate the portfolio immediately before the portfolio gets sub zero.
issueMarginCallWarning | Set to true if a warning should be issued to the algorithm |
Implemented in QuantConnect.Securities.DefaultMarginCallModel, and QuantConnect.Python.MarginCallModelPythonWrapper.
List<OrderTicket> QuantConnect.Securities.IMarginCallModel.ExecuteMarginCall | ( | IEnumerable< SubmitOrderRequest > | generatedMarginCallOrders | ) |
Executes synchronous orders to bring the account within margin requirements.
generatedMarginCallOrders | These are the margin call orders that were generated by individual security margin models. |
Implemented in QuantConnect.Securities.DefaultMarginCallModel, and QuantConnect.Python.MarginCallModelPythonWrapper.