void TradeNotify_OrderUpdateEvent(TapAPIOrderInfoNotice info)
 {
     if (OnOrderUpdateEvent != null)
     {
         OnOrderUpdateEvent();
     }
 }
        public override void OnRtnOrder(TapAPIOrderInfoNotice info)
        {
            Console.WriteLine("[OnRtnOrder]");
            if (null == info || null == info.OrderInfo)
            {
                return;
            }
            //这里是简化处理
            TapAPIOrderInfoNotice newInfo = new TapAPIOrderInfoNotice(info);

            newInfo.OrderInfo = new TapAPIOrderInfo(info.OrderInfo);
            DataManager.Trade.OrderInfoMgr.UpdateOrAdd(newInfo);
            if (null != OrderUpdateEvent)
            {
                OrderUpdateEvent(info);
            }
        }
Exemple #3
0
 public override void OnRtnOrder(TapAPIOrderInfoNotice info)
 {
     if (info != null)
     {
         if (info.ErrorCode != 0)
         {
             Console.WriteLine("OnRtnOrder error!");
         }
         else
         {
             if (info.SessionID == SessionId)
             {
                 if (info.OrderInfo.ErrorCode != 0)
                 {
                     Console.WriteLine("InsertOrder failed. {0} {1}", info.OrderInfo.OrderState, info.OrderInfo.OrderNo);
                 }
                 else
                 {
                     Console.WriteLine("InsertOrder succeed. {0} {1}", info.OrderInfo.OrderState, info.OrderInfo.OrderNo);
                 }
             }
         }
     }
 }
Exemple #4
0
 public virtual void OnRtnOrder(TapAPIOrderInfoNotice info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnOrder(swigCPtr, TapAPIOrderInfoNotice.getCPtr(info));
 }
Exemple #5
0
 public override void OnRtnOrder(TapAPIOrderInfoNotice info)
 {
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapAPIOrderInfoNotice obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }