예제 #1
0
 internal void ConnectDone()
 {
     EventHappened?.Invoke(this, XProviderEventType.ConnectDone);
     ProcessPendingCommand();
     if (MarketContinuousAfterConnectDone)
     {
         TradingStatus = InstrumentStatusType.Continous;
         EventHappened?.Invoke(this, XProviderEventType.MarketContinuous);
     }
     InitQuery();
     if (IsInstrumentProvider)
     {
         logger.Info("开始查询合约......");
         if (!qryInstrumentUseMarketApi)
         {
             trader.QueryInstrument();
         }
         else
         {
             market.QueryInstrument();
         }
     }
     else
     {
         StartTimerTask();
     }
 }
예제 #2
0
 internal void ConnectDone()
 {
     InitQuery();
     if (IsInstrumentProvider)
     {
         Trader.QueryInstrument();
         Logger.Info("开始查询合约......");
     }
     else
     {
         StartTimerTask();
     }
 }
예제 #3
0
 internal void ConnectDone()
 {
     EventHappened?.Invoke(this, XProviderEventType.ConnectDone);
     if (MarketContinousAfterConnectDone)
     {
         TradingStatus = InstrumentStatusType.Continous;
         EventHappened?.Invoke(this, XProviderEventType.MarketContinous);
     }
     InitQuery();
     if (IsInstrumentProvider)
     {
         Logger.Info("开始查询合约......");
         Trader.QueryInstrument();
     }
     else
     {
         StartTimerTask();
     }
 }