예제 #1
0
 public static extern int TdReqQryTradingCode(IntPtr pApi, ThostFtdcQryTradingCodeField pQryTradingCode, int nRequestID);
예제 #2
0
 /// <summary>
 ///请求查询交易编码
 /// </summary>
 public int ReqQryTradingCode(ThostFtdcQryTradingCodeField pQryTradingCode, int nRequestID)
 {
     return(Interop.TdReqQryTradingCode(Handle, pQryTradingCode, nRequestID));
 }
예제 #3
0
 /// <summary>
 /// 请求查询交易编码
 /// </summary>
 void ReqQryTradingCode()
 {
     ThostFtdcQryTradingCodeField req = new ThostFtdcQryTradingCodeField();
     req.BrokerID = BROKER_ID;
     req.InvestorID = INVESTOR_ID;
     int iResult = api.ReqQryTradingCode(req, ++iRequestID);
     Console.WriteLine("--->>> 请求查询交易编码: " + ((iResult == 0) ? "成功" : "失败"));
 }