Esempio n. 1
0
 public void TestQueryInvestorPositionDetail()
 {
     _api.OnRspQryInvestorPositionDetail += new TradeApi.RspQryInvestorPositionDetail((ref CThostFtdcInvestorPositionDetailField pInvestorPositionDetail,
                                                                                       ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("投资者持仓明细查询成功, InstrumentID: {0}", pInvestorPositionDetail.InstrumentID);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QueryInvestorPositionDetail(1);
     Thread.Sleep(200);
 }