예제 #1
0
 public void TestQueryBrokerTradingAlgos()
 {
     _api.OnRspQryBrokerTradingAlgos += new TradeApi.RspQryBrokerTradingAlgos((ref CThostFtdcBrokerTradingAlgosField pBrokerTradingAlgos,
                                                                               ref CThostFtdcRspInfoField pRspInfo, int nRequestID, byte bIsLast) =>
     {
         if (pRspInfo.ErrorID == 0)
         {
             Console.WriteLine("交易算法查询成功, BrokerID: {0}", pBrokerTradingAlgos.BrokerID);
         }
         else
         {
             Console.WriteLine(pRspInfo.ErrorMsg);
         }
         Assert.IsTrue(pRspInfo.ErrorID == 0);
     });
     _api.QueryBrokerTradingAlgos(1, "SHFE", "bu1712");
     Thread.Sleep(200);
 }