Esempio n. 1
0
 public void TestQueryTradingNotice()
 {
     _api.OnRspQryTradingNotice += new TradeApi.RspQryTradingNotice((ref CThostFtdcTradingNoticeField pTradingNotice,
                                                                     ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("交易通知查询成功, FieldContent: {0}", pTradingNotice.FieldContent);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QueryTradingNotice(1);
     Thread.Sleep(200);
 }