LiveAuxiliaryDataEnumerator
QuantConnect.Lean.Engine.DataFeeds.Enumerators.LiveAuxiliaryDataEnumerator
LiveAuxiliaryDataEnumerator(
config: SubscriptionDataConfig,
factor_file_provider: IFactorFileProvider,
map_file_provider: IMapFileProvider,
tradable_date_event_providers: List[
ITradableDateEventProvider
],
start_time: Union[datetime, date],
time_provider: ITimeProvider,
security_cache: SecurityCache,
)
Bases: AuxiliaryDataEnumerator
Auxiliary data enumerator that will trigger new tradable dates event accordingly
Creates a new instance
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
SubscriptionDataConfig
|
The SubscriptionDataConfig |
required |
factor_file_provider
|
IFactorFileProvider
|
The factor file provider to use |
required |
map_file_provider
|
IMapFileProvider
|
The MapFile provider to use |
required |
tradable_date_event_providers
|
List[ITradableDateEventProvider]
|
The tradable dates event providers |
required |
start_time
|
Union[datetime, date]
|
Start date for the data request |
required |
time_provider
|
ITimeProvider
|
The time provider to use |
required |
security_cache
|
SecurityCache
|
The security cache |
required |
config
config: SubscriptionDataConfig
The associated data configuration
This codeEntityType is protected.
move_next
move_next() -> bool
Moves the LiveAuxiliaryDataEnumerator to the next item
try_create
try_create(
data_config: SubscriptionDataConfig,
time_provider: ITimeProvider,
security_cache: SecurityCache,
map_file_provider: IMapFileProvider,
file_provider: IFactorFileProvider,
start_time: Union[datetime, date],
enumerator: Optional[IEnumerator[BaseData]],
) -> Tuple[bool, IEnumerator[BaseData]]
Helper method to create a new instance. Knows which security types should create one and determines the appropriate delisting event provider to use
dispose
dispose() -> None
Dispose of the Stream Reader and close out the source stream and file connections.
initialize
initialize() -> None
Initializes the underlying tradable data event providers
This codeEntityType is protected.
new_tradable_date
new_tradable_date(
sender: Any, event_args: NewTradableDateEventArgs
) -> None
Handle a new tradable date, drives the ITradableDateEventProvider instances
This codeEntityType is protected.
reset
reset() -> None
Reset the IEnumeration