Lean
$LEAN_TAG$
|
Real time event handler, trigger functions at regular or pretimed intervals More...
Public Member Functions | |
void | Setup (IAlgorithm algorithm, AlgorithmNodePacket job, IResultHandler resultHandler, IApi api, IIsolatorLimitResultProvider isolatorLimitProvider) |
Initializes the real time handler for the specified algorithm and job More... | |
void | SetTime (DateTime time) |
Set the current time for the event scanner (so we can use same code for backtesting and live events) More... | |
void | ScanPastEvents (DateTime time) |
Scan for past events that didn't fire because there was no data at the scheduled time. More... | |
void | Exit () |
Trigger and exit signal to terminate real time event scanner. More... | |
void | OnSecuritiesChanged (SecurityChanges changes) |
Event fired each time that we add/remove securities from the data feed More... | |
Public Member Functions inherited from QuantConnect.Scheduling.IEventSchedule | |
void | Add (ScheduledEvent scheduledEvent) |
Adds the specified event to the schedule More... | |
void | Remove (ScheduledEvent scheduledEvent) |
Removes the specified event from the schedule More... | |
Properties | |
bool | IsActive [get] |
Thread status flag. More... | |
Real time event handler, trigger functions at regular or pretimed intervals
Definition at line 31 of file IRealTimeHandler.cs.
void QuantConnect.Lean.Engine.RealTime.IRealTimeHandler.Setup | ( | IAlgorithm | algorithm, |
AlgorithmNodePacket | job, | ||
IResultHandler | resultHandler, | ||
IApi | api, | ||
IIsolatorLimitResultProvider | isolatorLimitProvider | ||
) |
Initializes the real time handler for the specified algorithm and job
Implemented in QuantConnect.Lean.Engine.RealTime.BaseRealTimeHandler, QuantConnect.Lean.Engine.RealTime.LiveTradingRealTimeHandler, and QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler.
void QuantConnect.Lean.Engine.RealTime.IRealTimeHandler.SetTime | ( | DateTime | time | ) |
Set the current time for the event scanner (so we can use same code for backtesting and live events)
time | Current real or backtest time. |
Implemented in QuantConnect.Lean.Engine.RealTime.LiveTradingRealTimeHandler, QuantConnect.Lean.Engine.RealTime.BaseRealTimeHandler, and QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler.
void QuantConnect.Lean.Engine.RealTime.IRealTimeHandler.ScanPastEvents | ( | DateTime | time | ) |
Scan for past events that didn't fire because there was no data at the scheduled time.
time | Current time. |
Implemented in QuantConnect.Lean.Engine.RealTime.LiveTradingRealTimeHandler, QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler, and QuantConnect.Lean.Engine.RealTime.BaseRealTimeHandler.
void QuantConnect.Lean.Engine.RealTime.IRealTimeHandler.Exit | ( | ) |
Trigger and exit signal to terminate real time event scanner.
Implemented in QuantConnect.Lean.Engine.RealTime.BaseRealTimeHandler, and QuantConnect.Lean.Engine.RealTime.LiveTradingRealTimeHandler.
void QuantConnect.Lean.Engine.RealTime.IRealTimeHandler.OnSecuritiesChanged | ( | SecurityChanges | changes | ) |
Event fired each time that we add/remove securities from the data feed
Implemented in QuantConnect.Lean.Engine.RealTime.BaseRealTimeHandler.
|
get |
Thread status flag.
Definition at line 37 of file IRealTimeHandler.cs.