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(); } }
internal void ConnectDone() { InitQuery(); if (IsInstrumentProvider) { Trader.QueryInstrument(); Logger.Info("开始查询合约......"); } else { StartTimerTask(); } }
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(); } }