IMapFileProvider
QuantConnect.Interfaces.IMapFileProvider
Provides instances of MapFileResolver at run time
get
get(
auxiliary_data_key: AuxiliaryDataKey,
) -> MapFileResolver
Gets a MapFileResolver representing all the map files for the specified market
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auxiliary_data_key
|
AuxiliaryDataKey
|
Key used to fetch a map file resolver. Specifying market and security type |
required |
Returns:
| Type | Description |
|---|---|
MapFileResolver
|
A MapFileResolver containing all map files for the specified market. |
initialize
initialize(data_provider: IDataProvider) -> None
Initializes our MapFileProvider by supplying our data_provider
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_provider
|
IDataProvider
|
DataProvider to use |
required |
resolve_map_file
resolve_map_file(
data_config: SubscriptionDataConfig,
) -> MapFile
Helper method to resolve the mapping file to use.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_config
|
SubscriptionDataConfig
|
The configuration to fetch the map file for |
required |
Returns:
| Type | Description |
|---|---|
MapFile
|
The mapping file to use. |
retrieve_all_mapped_symbol_in_date_range
retrieve_all_mapped_symbol_in_date_range(
symbol: Union[Symbol, str, BaseContract, Security],
) -> Sequence[SymbolDateRange]
Retrieves all Symbol from map files based on specific Symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
Union[Symbol, str, BaseContract, Security]
|
The symbol to get MapFileResolver and generate new Symbol. |
required |
Returns:
| Type | Description |
|---|---|
Sequence[SymbolDateRange]
|
An enumerable collection of SymbolDateRange. |
retrieve_symbol_historical_definitions_in_date_range
retrieve_symbol_historical_definitions_in_date_range(
symbol: Union[Symbol, str, BaseContract, Security],
start_date_time: Union[datetime, date],
end_date_time: Union[datetime, date],
) -> Sequence[TickerDateRange]
Some historical provider supports ancient data. In fact, the ticker could be restructured to new one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
Union[Symbol, str, BaseContract, Security]
|
Represents a unique security identifier |
required |
start_date_time
|
Union[datetime, date]
|
The date since we began our search for the historical name of the symbol. |
required |
end_date_time
|
Union[datetime, date]
|
The end date and time of the historical data range. |
required |
Returns:
| Type | Description |
|---|---|
Sequence[TickerDateRange]
|
An enumerable collection of tuples containing symbol ticker, start date and time, and end date and time representing the historical definitions of the symbol within the specified time range. |