Lean
$LEAN_TAG$
|
Provides an implementation of IDataConsolidator that preserve the input data unmodified. The input data is filtering by the specified predicate function More...
Public Member Functions | |
FilteredIdentityDataConsolidator (Func< T, bool > predicate) | |
Initializes a new instance of the FilteredIdentityDataConsolidator<T> class More... | |
override void | Update (T data) |
Updates this consolidator with the specified data More... | |
Public Member Functions inherited from QuantConnect.Data.Consolidators.IdentityDataConsolidator< T > | |
override void | Update (T data) |
Updates this consolidator with the specified data More... | |
override void | Scan (DateTime currentLocalTime) |
Scans this consolidator to see if it should emit a bar due to time passing More... | |
Public Member Functions inherited from QuantConnect.Data.Consolidators.DataConsolidator< T > | |
void | Update (IBaseData data) |
Updates this consolidator with the specified data More... | |
abstract void | Update (TInput data) |
Updates this consolidator with the specified data. This method is responsible for raising the DataConsolidated event More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Static Public Member Functions | |
static FilteredIdentityDataConsolidator< Tick > | ForTickType (TickType tickType) |
Creates a new instance of FilteredIdentityDataConsolidator<T> that filters ticks based on the specified TickType More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QuantConnect.Data.Consolidators.DataConsolidator< T > | |
virtual void | OnDataConsolidated (IBaseData consolidated) |
Event invocator for the DataConsolidated event. This should be invoked by derived classes when they have consolidated a new piece of data. More... | |
Properties inherited from QuantConnect.Data.Consolidators.IdentityDataConsolidator< T > | |
override IBaseData? | WorkingData [get] |
Gets a clone of the data being currently consolidated More... | |
override Type | OutputType [get] |
Gets the type produced by this consolidator More... | |
Properties inherited from QuantConnect.Data.Consolidators.DataConsolidator< T > | |
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... | |
abstract IBaseData | WorkingData [get] |
Gets a clone of the data being currently consolidated More... | |
Type | InputType [get] |
Gets the type consumed by this consolidator More... | |
abstract Type | OutputType [get] |
Gets the type produced by this consolidator More... | |
Events inherited from QuantConnect.Data.Consolidators.DataConsolidator< T > | |
DataConsolidatedHandler | DataConsolidated |
Event handler that fires when a new piece of data is produced More... | |
Provides an implementation of IDataConsolidator that preserve the input data unmodified. The input data is filtering by the specified predicate function
Provides factory methods for creating instances of FilteredIdentityDataConsolidator<T>
T | The type of data |
T | : | IBaseData |
Definition at line 26 of file FilteredIdentityDataConsolidator.cs.
QuantConnect.Data.Consolidators.FilteredIdentityDataConsolidator< T >.FilteredIdentityDataConsolidator | ( | Func< T, bool > | predicate | ) |
Initializes a new instance of the FilteredIdentityDataConsolidator<T> class
predicate | The predicate function, returning true to accept data and false to reject data |
Definition at line 35 of file FilteredIdentityDataConsolidator.cs.
override void QuantConnect.Data.Consolidators.FilteredIdentityDataConsolidator< T >.Update | ( | T | data | ) |
Updates this consolidator with the specified data
data | The new data for the consolidator |
Definition at line 44 of file FilteredIdentityDataConsolidator.cs.
|
static |
Creates a new instance of FilteredIdentityDataConsolidator<T> that filters ticks based on the specified TickType
tickType | The tick type of data to accept |
Definition at line 65 of file FilteredIdentityDataConsolidator.cs.