public void Subscribe(string[] instruments) { var ret = mdApi.SubscribeMarketData(instruments); HandleStatusInternal("CTP发送订阅请求:" + (ret == 0 ? "成功" : "失败,返回代码" + ret)); }
void SubscribeMarketData() { int iResult = api.SubscribeMarketData(ppInstrumentID); Console.WriteLine("--->>> 发送行情订阅请求: " + ((iResult == 0) ? "成功" : "失败")); }
private void SubscribeMarketData() { int iResult = api.SubscribeMarketData(QuantTraderGlobals.GetInstance().QuantTraderConfig.SubscribeMarketDatas.ToArray()); _logger.Info("--->>> 发送行情订阅请求: " + ((iResult == 0) ? "成功" : "失败")); }