public int CancelOrder(PSIceAccount account, PSIceOrderCancel cancel, out PSIceOrderCancelOut cancel_out, out PSIceErrorCode error) { try { TradeServantPrx prx = GetTradeServant(); if (prx != null) { return(prx.CancelOrder(account, cancel, out cancel_out, out error)); } } catch (System.Exception ex) { Program.logger.LogInfo("PortClient:{0},委托撤单调用失败!\r\n{1}", _id, ex); } error = new PSIceErrorCode(-1, "未知错误"); cancel_out = null; return(-1); }
public int SendOrder(PSIceAccount account, PSIceOrder order, out PSIceOrderOut orderout, out PSIceErrorCode error) { var prx = GetTradeServant(); try { if (prx != null) { return(prx.SendOrder(account, order, out orderout, out error)); } } catch (System.Exception ex) { Program.logger.LogInfo("顶点订单发送失败:{0}", ex.Message); } error = new PSIceErrorCode(-1, "未知错误"); orderout = null; return(0); }