예제 #1
0
 private void OnRspUserLogin(ThostFtdcRspUserLoginField pRspUserLogin, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     if (bIsLast && !IsErrorRspInfo(pRspInfo))
     {
         ///获取当前交易日
         _logger.Info("--->>> 获取当前交易日 = " + api.GetTradingDay());
         // 请求订阅行情
         SubscribeMarketData();
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: aoxiang310/CPS
 void OnRspUserLogin(ThostFtdcRspUserLoginField pRspUserLogin, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     __DEBUGPF__();
     if (bIsLast && !IsErrorRspInfo(pRspInfo))
     {
         ///获取当前交易日
         Console.WriteLine("--->>> 获取当前交易日 = " + api.GetTradingDay());
         // 请求订阅行情
         SubscribeMarketData();
     }
 }