Lean
$LEAN_TAG$
|
Aggregates ticks and bars based on given subscriptions. Current implementation is based on IDataConsolidator that consolidates ticks and put them into enumerator. More...
Public Member Functions | |
void | Initialize (DataAggregatorInitializeParameters parameters) |
Initialize this instance More... | |
IEnumerator< BaseData > | Add (SubscriptionDataConfig dataConfig, EventHandler newDataAvailableHandler) |
Add new subscription to current IDataAggregator instance More... | |
bool | Remove (SubscriptionDataConfig dataConfig) |
Removes the handler with the specified identifier More... | |
void | Update (BaseData input) |
Add new data to aggregator More... | |
void | Dispose () |
Dispose of the aggregation manager. More... | |
Protected Member Functions | |
virtual IDataConsolidator | GetConsolidator (SubscriptionDataConfig config) |
Gets the consolidator to aggregate data for the given config More... | |
Properties | |
ITimeProvider | TimeProvider = RealTimeProvider.Instance [get, set] |
Continuous UTC time provider More... | |
Aggregates ticks and bars based on given subscriptions. Current implementation is based on IDataConsolidator that consolidates ticks and put them into enumerator.
Definition at line 33 of file AggregationManager.cs.
void QuantConnect.Lean.Engine.DataFeeds.AggregationManager.Initialize | ( | DataAggregatorInitializeParameters | parameters | ) |
Initialize this instance
parameters | The parameters dto instance |
Implements QuantConnect.Data.IDataAggregator.
Definition at line 48 of file AggregationManager.cs.
IEnumerator<BaseData> QuantConnect.Lean.Engine.DataFeeds.AggregationManager.Add | ( | SubscriptionDataConfig | dataConfig, |
EventHandler | newDataAvailableHandler | ||
) |
Add new subscription to current IDataAggregator instance
dataConfig | defines the parameters to subscribe to a data feed |
newDataAvailableHandler | handler to be fired on new data available |
Implements QuantConnect.Data.IDataAggregator.
Definition at line 60 of file AggregationManager.cs.
bool QuantConnect.Lean.Engine.DataFeeds.AggregationManager.Remove | ( | SubscriptionDataConfig | dataConfig | ) |
Removes the handler with the specified identifier
dataConfig | Subscription data configuration to be removed |
Implements QuantConnect.Data.IDataAggregator.
Definition at line 81 of file AggregationManager.cs.
void QuantConnect.Lean.Engine.DataFeeds.AggregationManager.Update | ( | BaseData | input | ) |
Add new data to aggregator
input | The new data |
Implements QuantConnect.Data.IDataAggregator.
Definition at line 108 of file AggregationManager.cs.
void QuantConnect.Lean.Engine.DataFeeds.AggregationManager.Dispose | ( | ) |
Dispose of the aggregation manager.
Definition at line 142 of file AggregationManager.cs.
|
protectedvirtual |
Gets the consolidator to aggregate data for the given config
Definition at line 147 of file AggregationManager.cs.
|
getsetprotected |
Continuous UTC time provider
Definition at line 42 of file AggregationManager.cs.