Lean
$LEAN_TAG$
|
Represents a type capable of taking BaseData updates and firing events containing new 'consolidated' data. These types can be used to produce larger bars, or even be used to transform the data before being sent to another component. The most common usage of these types is with indicators. More...
Public Member Functions | |
void | Update (IBaseData data) |
Updates this consolidator with the specified data More... | |
void | Scan (DateTime currentLocalTime) |
Scans this consolidator to see if it should emit a bar due to time passing More... | |
void | Reset () |
Resets the consolidator More... | |
Properties | |
IBaseData | Consolidated [get] |
Gets the most recently consolidated piece of data. This will be null if this consolidator has not produced any data yet. More... | |
IBaseData | WorkingData [get] |
Gets a clone of the data being currently consolidated More... | |
Type | InputType [get] |
Gets the type consumed by this consolidator More... | |
Type | OutputType [get] |
Gets the type produced by this consolidator More... | |
Events | |
DataConsolidatedHandler | DataConsolidated |
Event handler that fires when a new piece of data is produced More... | |
Represents a type capable of taking BaseData updates and firing events containing new 'consolidated' data. These types can be used to produce larger bars, or even be used to transform the data before being sent to another component. The most common usage of these types is with indicators.
Definition at line 33 of file IDataConsolidator.cs.
void QuantConnect.Data.Consolidators.IDataConsolidator.Update | ( | IBaseData | data | ) |
Updates this consolidator with the specified data
data | The new data for the consolidator |
Implemented in QuantConnect.Data.Consolidators.BaseTimelessConsolidator< T >, QuantConnect.Data.Consolidators.RenkoConsolidator< TInput >, QuantConnect.Data.Common.MarketHourAwareConsolidator, QuantConnect.Python.DataConsolidatorPythonWrapper, QuantConnect.Data.Consolidators.SequentialConsolidator, and QuantConnect.Data.Consolidators.DataConsolidator< TInput >.
void QuantConnect.Data.Consolidators.IDataConsolidator.Scan | ( | DateTime | currentLocalTime | ) |
Scans this consolidator to see if it should emit a bar due to time passing
currentLocalTime | The current time in the local time zone (same as BaseData.Time) |
Implemented in QuantConnect.Data.Consolidators.RenkoConsolidator< TInput >, QuantConnect.Data.Consolidators.BaseTimelessConsolidator< T >, QuantConnect.Data.Common.MarketHourAwareConsolidator, QuantConnect.Python.DataConsolidatorPythonWrapper, QuantConnect.Data.Consolidators.SequentialConsolidator, and QuantConnect.Data.Consolidators.DataConsolidator< TInput >.
void QuantConnect.Data.Consolidators.IDataConsolidator.Reset | ( | ) |
Resets the consolidator
Implemented in QuantConnect.Data.Consolidators.RenkoConsolidator< TInput >, QuantConnect.Data.Consolidators.BaseTimelessConsolidator< T >, QuantConnect.Data.Common.MarketHourAwareConsolidator, QuantConnect.Data.Consolidators.SequentialConsolidator, QuantConnect.Python.DataConsolidatorPythonWrapper, and QuantConnect.Data.Consolidators.DataConsolidator< TInput >.
|
get |
Gets the most recently consolidated piece of data. This will be null if this consolidator has not produced any data yet.
Definition at line 39 of file IDataConsolidator.cs.
|
get |
Gets a clone of the data being currently consolidated
Definition at line 44 of file IDataConsolidator.cs.
|
get |
Gets the type consumed by this consolidator
Definition at line 49 of file IDataConsolidator.cs.
|
get |
Gets the type produced by this consolidator
Definition at line 54 of file IDataConsolidator.cs.
DataConsolidatedHandler QuantConnect.Data.Consolidators.IDataConsolidator.DataConsolidated |
Event handler that fires when a new piece of data is produced
Definition at line 76 of file IDataConsolidator.cs.