Пример #1
0
 public DataReader(string dataCenterUri)
 {
     this.dataStore           = DataStoreFactory.CreateDataStore(dataCenterUri);
     this.codeReader          = new CodeReader(dataStore.CreateInstrumentStore());
     this.tradingDayReader    = new CacheUtils_TradingDay(dataStore.CreateTradingDayStore().Load());
     this.tradingSessionStore = dataStore.CreateTradingSessionStore();
     this.tradingTimeStore    = dataStore.CreateTradingTimeStore();
     this.tickDataReader      = new TickDataReader(dataStore, this);
     this.klineDataReader     = new KLineDataReader(dataStore, this);
     this.timeLineDataReader  = new TimeLineDataReader(this);
     this.mainContractReader  = new MainContractReader(dataStore);
 }
Пример #2
0
 public Step_UpdateTradingTime_Code(string code, IPlugin_HistoryData historyData, IDataStore dataStore)
 {
     this.code        = code;
     this.store       = dataStore.CreateTradingTimeStore();
     this.historyData = historyData;
 }
Пример #3
0
 public TradingTimeReader(string code, ITradingTimeStore tradingSessionStore)
 {
     this.code = code;
     this.tradingSessionStore = tradingSessionStore;
     this.cache = new CacheUtils_TradingTime(code, tradingSessionStore.Load(code));
 }