示例#1
0
 public void TestQuerySettlementInfo()
 {
     _api.OnRspQrySettlementInfo += new TradeApi.RspQrySettlementInfo((ref CThostFtdcSettlementInfoField pSettlementInfo,
                                                                       ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("投资者结算结果查询成功, SettlementID: {0}", pSettlementInfo.SettlementID);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QuerySettlementInfo(1);
     Thread.Sleep(200);
 }