private void ReportOrder(OrderField order, ExecType execType, OrderStatus newStatus, CtpRspInfo rspInfo)
 {
     ReportOrder(order, execType, newStatus, rspInfo.ErrorID, rspInfo.ErrorID, rspInfo.ErrorMsg);
 }
 public void Post(OrderField order)
 {
     _action.Post(new NewOrderEvent(order));
 }
 public NewOrderEvent(OrderField order)
 {
     Order = order;
 }
 public static void SetText(this OrderField field, string text)
 {
     field.Text = PInvokeUtility.Gb2312.GetBytes(text);
 }
Beispiel #5
0
 void IXSpi.ProcessRtnOrder(OrderField order)
 {
     OrderReturn?.Invoke(this, order);
 }
Beispiel #6
0
 void IXSpi.ProcessQryOrder(OrderField order, bool last)
 {
     OrderReceived?.Invoke(this, order, last);
 }
 public static string DebugInfo(this OrderField field)
 {
     return(field == null ? string.Empty : $"[InstrumentID={field.InstrumentID},ExchangeID={field.ExchangeID},Side={field.Side},Qty={field.Qty},LeavesQty={field.LeavesQty},Price={field.Price},OpenClose={field.OpenClose},HedgeFlag={field.HedgeFlag},LocalID={field.LocalID},ID={field.ID},OrderID={field.OrderID},Date={field.Date},Time={field.Time},Type={field.Type},TimeInForce={field.TimeInForce},Status={field.Status},ExecType={field.ExecType},XErrorID={field.XErrorID},RawErrorID={field.RawErrorID},Text={field.Text()}]");
 }
 public static string Text(this OrderField field)
 {
     return(field == null ? string.Empty : PInvokeUtility.ReadString(field.Text));
 }