Exemplo n.º 1
0
 public void TestQueryAccountregister()
 {
     _api.OnRspQryAccountregister += new TradeApi.RspQryAccountregister((ref CThostFtdcAccountregisterField pAccountregister,
                                                                         ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("银期签约关系查询成功, TradeDay: {0}", pAccountregister.TradeDay);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QueryAccountregister(1, "101");
     Thread.Sleep(200);
 }