Lean
$LEAN_TAG$
|
Mapping extensions helper methods More...
Static Public Member Functions | |
static MapFile | ResolveMapFile (this IMapFileProvider mapFileProvider, SubscriptionDataConfig dataConfig) |
Helper method to resolve the mapping file to use. More... | |
static MapFile | ResolveMapFile (this MapFileResolver mapFileResolver, Symbol symbol, string dataType=null) |
Helper method to resolve the mapping file to use. More... | |
static IEnumerable< TickerDateRange > | RetrieveSymbolHistoricalDefinitionsInDateRange (this IMapFileProvider mapFileProvider, Symbol symbol, DateTime startDateTime, DateTime endDateTime) |
Some historical provider supports ancient data. In fact, the ticker could be restructured to new one. More... | |
static IEnumerable< SymbolDateRange > | RetrieveAllMappedSymbolInDateRange (this IMapFileProvider mapFileProvider, Symbol symbol) |
Retrieves all Symbol from map files based on specific Symbol. More... | |
Mapping extensions helper methods
Definition at line 27 of file MappingExtensions.cs.
|
static |
Helper method to resolve the mapping file to use.
This method is aware of the data type being added for SecurityType.Base to the SecurityIdentifier.Symbol value
mapFileProvider | The map file provider |
dataConfig | The configuration to fetch the map file for |
Definition at line 37 of file MappingExtensions.cs.
|
static |
Helper method to resolve the mapping file to use.
This method is aware of the data type being added for SecurityType.Base to the SecurityIdentifier.Symbol value
mapFileResolver | The map file resolver |
symbol | The symbol that we want to map |
dataType | The string data type name if any |
Definition at line 56 of file MappingExtensions.cs.
|
static |
Some historical provider supports ancient data. In fact, the ticker could be restructured to new one.
mapFileProvider | Provides instances of MapFileResolver at run time |
symbol | Represents a unique security identifier |
startDateTime | The date since we began our search for the historical name of the symbol. |
endDateTime | The end date and time of the historical data range. |
ArgumentNullException | Thrown when mapFileProvider is null. |
For instances, get "GOOGL" since 2013 to 2018: It returns: { ("GOOG", 2013, 2014), ("GOOGL", 2014, 2018) }
GOOGLE: IPO: August 19, 2004 Name = GOOG then it was restructured: from "GOOG" to "GOOGL" on April 2, 2014
Definition at line 102 of file MappingExtensions.cs.
|
static |
Retrieves all Symbol from map files based on specific Symbol.
mapFileProvider | The provider for map files containing ticker data. |
symbol | The symbol to get MapFileResolver and generate new Symbol. |
ArgumentException | Throw if mapFileProvider is null. |
Definition at line 145 of file MappingExtensions.cs.