Esempio n. 1
0
 public void TestQuerySettlementInfoConfirm()
 {
     _api.OnRspQrySettlementInfoConfirm += new TradeApi.RspQrySettlementInfoConfirm((ref CThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm,
                                                                                     ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("结算信息确认查询成功, ConfirmDate: {0}", pSettlementInfoConfirm.ConfirmDate);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QuerySettlementInfoConfirm(1);
     Thread.Sleep(200);
 }