コード例 #1
0
ファイル: MapFileResolver.cs プロジェクト: sprgn/LeanITrend
 /// <summary>
 /// Reads in the map file at the specified path, returning null if any exceptions are encountered
 /// </summary>
 public static List <MapFileRow> SafeMapFileRowRead(string file)
 {
     try
     {
         return(MapFileRow.Read(file).ToList());
     }
     catch (Exception err)
     {
         Log.Error("MapFileResover.Create(): " + file + " \tError: " + err.Message);
         return(null);
     }
 }
コード例 #2
0
ファイル: MapFileResolver.cs プロジェクト: sprgn/LeanITrend
 /// <summary>
 /// Initializes a new instance of the <see cref="MapFileRowEntry"/> class
 /// </summary>
 /// <param name="entitySymbol">The map file that produced this row</param>
 /// <param name="mapFileRow">The map file row data</param>
 public MapFileRowEntry(string entitySymbol, MapFileRow mapFileRow)
 {
     MapFileRow   = mapFileRow;
     EntitySymbol = entitySymbol;
 }
コード例 #3
0
 /// <summary>
 /// Reads in an entire map file for the requested symbol from the DataFolder
 /// </summary>
 public static MapFile Read(string symbol)
 {
     return(new MapFile(symbol, MapFileRow.Read(symbol)));
 }
コード例 #4
0
 /// <summary>
 /// Reads in an entire map file for the requested symbol from the DataFolder
 /// </summary>
 public static MapFile Read(string symbol, string market)
 {
     return(new MapFile(symbol, MapFileRow.Read(symbol, market)));
 }