Ejemplo n.º 1
0
 public DataLoader_Abstract(PluginHelper pluginHelper, string srcDataPath)
 {
     this.srcDataPath                     = srcDataPath;
     this.dataLoader_Instrument           = new DataLoader_InstrumentInfo(pluginHelper.PluginDirPath);
     this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginHelper.PluginDirPath, this.dataLoader_Instrument);
     this.plugin_HistoryData_CnFutures    = new Plugin_HistoryData_CnFutures(new PluginHelper(pluginHelper.PluginInfo));
 }
Ejemplo n.º 2
0
        public UpdatedDataLoader(string pluginPath, string csvDataPath)
        {
            PluginHelper helper = new PluginHelper(pluginPath);

            this.plugin_HistoryData = new Plugin_HistoryData_CnFutures(helper, csvDataPath);
            this.tradingDayCache    = new CacheUtils_TradingDay(plugin_HistoryData.GetTradingDays());
            this.codeInfoCache      = new CacheUtils_CodeInfo(plugin_HistoryData.GetInstruments());
            this.mainContracts      = plugin_HistoryData.GetMainContractInfos();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="pluginHelper">插件帮助类,提供插件相关数据</param>
 /// <param name="dataProvider">数据提供者</param>
 /// <param name="srcDataPath">源数据目录</param>
 /// <param name="targetDataPath">目标目录</param>
 public DataLoader(PluginHelper pluginHelper, IDataProvider dataProvider, String srcDataPath, string targetDataPath)
 {
     this.dataProvider       = dataProvider;
     this.srcDataPath        = srcDataPath;
     this.targetDataPath     = targetDataPath;
     this.dataLoader_Variety = new DataLoader_Variety(pluginHelper.PluginDirPath);
     //this.dataLoader_Instrument = new CodeInfoGenerator(pluginHelper.PluginDirPath);
     this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginHelper.PluginDirPath, dataLoader_Variety);
     this.plugin_HistoryData_CnFutures    = new Plugin_HistoryData_CnFutures(pluginHelper);
 }