public static extern int TdReqQryTradingCode(IntPtr pApi, ThostFtdcQryTradingCodeField pQryTradingCode, int nRequestID);
/// <summary> ///请求查询交易编码 /// </summary> public int ReqQryTradingCode(ThostFtdcQryTradingCodeField pQryTradingCode, int nRequestID) { return(Interop.TdReqQryTradingCode(Handle, pQryTradingCode, nRequestID)); }
/// <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) ? "成功" : "失败")); }