Lean
$LEAN_TAG$
|
Represents an entire map file for a specified symbol More...
Public Member Functions | |
MapFile (string permtick, IEnumerable< MapFileRow > data) | |
Initializes a new instance of the MapFile class. More... | |
string | GetMappedSymbol (DateTime searchDate, string defaultReturnValue="", DataMappingMode? dataMappingMode=null) |
Memory overload search method for finding the mapped symbol for this date. More... | |
bool | HasData (DateTime date) |
Determines if there's data for the requested date More... | |
IEnumerable< string > | ToCsvLines () |
Reads and writes each MapFileRow More... | |
void | WriteToCsv (string market, SecurityType securityType) |
Writes the map file to a CSV file More... | |
IEnumerator< MapFileRow > | GetEnumerator () |
Returns an enumerator that iterates through the collection. More... | |
Static Public Member Functions | |
static string | GetRelativeMapFilePath (string market, SecurityType securityType) |
Constructs the map file path for the specified market and symbol More... | |
static IEnumerable< MapFile > | GetMapFiles (string mapFileDirectory, string market, SecurityType securityType, IDataProvider dataProvider) |
Reads all the map files in the specified directory More... | |
Properties | |
string | Permtick [get] |
Gets the entity's unique symbol, i.e OIH.1 More... | |
DateTime | DelistingDate [get] |
Gets the last date in the map file which is indicative of a delisting event More... | |
DateTime | FirstDate [get] |
Gets the first date in this map file More... | |
string | FirstTicker [get] |
Gets the first ticker for the security represented by this map file More... | |
Represents an entire map file for a specified symbol
Definition at line 32 of file MapFile.cs.
QuantConnect.Data.Auxiliary.MapFile.MapFile | ( | string | permtick, |
IEnumerable< MapFileRow > | data | ||
) |
Initializes a new instance of the MapFile class.
Definition at line 59 of file MapFile.cs.
string QuantConnect.Data.Auxiliary.MapFile.GetMappedSymbol | ( | DateTime | searchDate, |
string | defaultReturnValue = "" , |
||
DataMappingMode? | dataMappingMode = null |
||
) |
Memory overload search method for finding the mapped symbol for this date.
searchDate | date for symbol we need to find. |
defaultReturnValue | Default return value if search was got no result. |
dataMappingMode | The mapping mode to use if any. |
Definition at line 106 of file MapFile.cs.
bool QuantConnect.Data.Auxiliary.MapFile.HasData | ( | DateTime | date | ) |
Determines if there's data for the requested date
Definition at line 126 of file MapFile.cs.
IEnumerable<string> QuantConnect.Data.Auxiliary.MapFile.ToCsvLines | ( | ) |
Reads and writes each MapFileRow
Definition at line 146 of file MapFile.cs.
void QuantConnect.Data.Auxiliary.MapFile.WriteToCsv | ( | string | market, |
SecurityType | securityType | ||
) |
Writes the map file to a CSV file
market | The market to save the MapFile to |
securityType | The map file security type |
Definition at line 156 of file MapFile.cs.
|
static |
Constructs the map file path for the specified market and symbol
market | The market this symbol belongs to |
securityType | The map file security type |
Definition at line 176 of file MapFile.cs.
IEnumerator<MapFileRow> QuantConnect.Data.Auxiliary.MapFile.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the collection.
<filterpriority>1</filterpriority>
Definition at line 190 of file MapFile.cs.
|
static |
Reads all the map files in the specified directory
mapFileDirectory | The map file directory path |
market | The map file market |
securityType | The map file security type |
dataProvider | The data provider instance to use |
Definition at line 217 of file MapFile.cs.
|
get |
Gets the entity's unique symbol, i.e OIH.1
Definition at line 39 of file MapFile.cs.
|
get |
Gets the last date in the map file which is indicative of a delisting event
Definition at line 44 of file MapFile.cs.
|
get |
Gets the first date in this map file
Definition at line 49 of file MapFile.cs.
|
get |
Gets the first ticker for the security represented by this map file
Definition at line 54 of file MapFile.cs.