/// <summary> /// 委托查询应答 /// </summary> /// <param name="rsp"></param> /// <param name="islast"></param> void OnQueryOrder(/*TEsOrderInsertRspField*/ IntPtr rsp, bool islast) { if (rsp != IntPtr.Zero) { TEsOrderInsertRspField data = PInvokeUtility.GetObjectFromIntPtr <TEsOrderInsertRspField>(rsp); this.trader.orderList.Add(data); Trace.WriteLine(string.Format("【委托查询应答】{0} : {1} {2}", data.ReqData.Contract1, data.OrderNo, data.OrderState)); } if (islast == true) { EventProcessor.BeginInvoke(this.trader.QueryOrderResponse, this.trader, new EsunnyEventArgs <List <TEsOrderInsertRspField> >(this.trader.orderList)); } }
/// <summary> /// 委托变化应答 /// </summary> /// <param name="rsp"></param> void OnReturnOrder(TEsOrderInsertRspField rsp) { Trace.WriteLine(string.Format("【委托变化应答】{0} : {1} {2}", rsp.ReqData.Contract1, rsp.OrderState, rsp.MatchVol)); EventProcessor.BeginInvoke(this.trader.ReturnOrderResponse, this.trader, new EsunnyEventArgs <TEsOrderInsertRspField>(rsp)); }
/// <summary> /// 委托变化应答 /// </summary> /// <param name="rsp"></param> void OnReturnOrder(TEsOrderInsertRspField rsp) { Trace.WriteLine(string.Format("【委托变化应答】{0} : {1} {2}", rsp.ReqData.Contract1, rsp.OrderState, rsp.MatchVol)); EventProcessor.BeginInvoke(this.trader.ReturnOrderResponse, this.trader, new EsunnyEventArgs<TEsOrderInsertRspField>(rsp)); }