Esempio n. 1
0
 public void TestQueryParkedOrderAction()
 {
     _api.OnRspQryParkedOrderAction += new TradeApi.RspQryParkedOrderAction((ref CThostFtdcParkedOrderActionField pParkedOrderAction,
                                                                             ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("预埋撤单查询成功, parkedOrderActionID: {0},Status: {1}", pParkedOrderAction.ParkedOrderActionID, pParkedOrderAction.Status);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QueryParkedOrderAction(1);
     Thread.Sleep(200);
 }