Exemplo n.º 1
0
 public void TestQueryBrokerTradingParams()
 {
     _api.OnRspQryBrokerTradingParams += new TradeApi.RspQryBrokerTradingParams((ref CThostFtdcBrokerTradingParamsField pBrokerTradingParams,
                                                                                 ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("交易参数查询成功, BrokerID: {0}", pBrokerTradingParams.BrokerID);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QueryBrokerTradingParams(1);
     Thread.Sleep(200);
 }