コード例 #1
0
 /// <summary>
 /// OrderRejected InstrumentTradeSubscription callback.
 /// </summary>
 /// <param name="sender">Sender (InstrumentTradeSubscription)</param>
 /// <param name="e">OrderRejectedEventArgs</param>
 void m_instrumentTradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     txtOrderBook.Text += String.Format("Rejected {0} {1}{2}",
                                        e.Order.SiteOrderKey,
                                        e.Message,
                                        System.Environment.NewLine);
 }
コード例 #2
0
        /// <summary>
        /// Trigger method called to raise the <see cref="OrderIsRejected"/> event
        /// </summary>
        protected virtual void OnOrderIsRejected(OrderDTO orderDTO, ICollection <OrderItemDTO> items)
        {
            //null test, without making a copy while keeping thread-safety
            OrderRejectedEventArgs args = new OrderRejectedEventArgs()
            {
                Order = orderDTO, Items = items
            };

            OrderIsRejected?.Invoke(this, args);
        }
コード例 #3
0
 /// <summary>
 /// OrderRejected InstrumentTradeSubscription callback.
 /// </summary>
 /// <param name="sender">Sender (InstrumentTradeSubscription)</param>
 /// <param name="e">OrderRejectedEventArgs</param>
 void m_instrumentTradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     if (e.Order.SiteOrderKey == m_LastOrderSiteOrderKey)
     {
         MessageBox.Show(String.Format("Rejected {0} {1}",
                                       e.Order.SiteOrderKey,
                                       e.Message));
         gboModifyOrder.Enabled   = false;
         buttonDeleteLast.Enabled = false;
     }
 }
コード例 #4
0
 /// <summary>
 /// Event notification for order rejected
 /// </summary>
 void m_ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     if (e.Order.SiteOrderKey == m_orderKey)
     {
         // Our parent order has been rejected
         Console.WriteLine("Our parent order has been rejected: {0}", e.Message);
     }
     else if (e.Order.SyntheticOrderKey == m_orderKey)
     {
         // A child order of our parent order has been rejected
         Console.WriteLine("A child order of our parent order has been rejected: {0}", e.Message);
     }
 }
コード例 #5
0
        private void BrokerOnOrderRejected(object sender, OrderRejectedEventArgs args)
        {
            if (sender is IBroker broker)
            {
                lock (_ordersFromSignals)
                {
                    var id = args.Order.UniqueUserId;
                    if (_ordersFromSignals.ContainsKey(id))
                    {
                        if (string.IsNullOrEmpty(args.Order.Origin))
                        {
                            args.Order.Origin = _ordersFromSignals[id];
                        }
                        _ordersFromSignals.Remove(id);
                    }
                }

                foreach (var userInfo in GetUserInfo(broker))
                {
                    RaiseOrderRejected(userInfo, args.Order, args.Message);
                }
            }
        }
コード例 #6
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Event notification for order rejection. </summary>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 void m_algoTradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     Console.WriteLine("\nOrderRejected [{0}] Details:{1} [{2}] :", e.Order.SiteOrderKey, e.Message, e.OrderRejectReason);
 }
コード例 #7
0
 void m_ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     Console.WriteLine("Order was rejected.");
     Console.WriteLine(e.Message);
 }
コード例 #8
0
 void ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     Console.WriteLine("OrderRejected");
     Console.WriteLine(OrderToString(e.Order));
 }
コード例 #9
0
 /// <summary>
 /// Method for handling order rejected events
 /// </summary>
 protected void NewOrderRejected(object sender, OrderRejectedEventArgs args)
 {
     // this method to notify the customer that the order has been rejected
 }
コード例 #10
0
 /// <summary>
 /// Event notification for order rejected
 /// </summary>
 void m_ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     if (e.Order.SiteOrderKey == m_orderKey)
     {
         // Our parent order has been rejected
         Console.WriteLine("Our parent order has been rejected: {0}", e.Message);
     }
     else if (e.Order.SyntheticOrderKey == m_orderKey)
     {
         // A child order of our parent order has been rejected
         Console.WriteLine("A child order of our parent order has been rejected: {0}", e.Message);
     }
 }
コード例 #11
0
 /// <summary>
 /// Event notification for order rejected
 /// </summary>
 void m_ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     Console.WriteLine("Order was rejected.");
 }
コード例 #12
0
 /// <summary>
 /// Triggered when the exchange rejects an order action
 /// </summary>
 void tradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     UpdateAuditLog("OrderRejected", e.Order);
 }
コード例 #13
0
 private void TT_OrderRejected(object sender, OrderRejectedEventArgs eventArgs)
 {
     m_ParentHub.HubEventEnqueue(eventArgs);
 }
コード例 #14
0
 /// <summary>
 /// OrderRejected InstrumentTradeSubscription callback.
 /// </summary>
 /// <param name="sender">Sender (InstrumentTradeSubscription)</param>
 /// <param name="e">OrderRejectedEventArgs</param>
 void m_instrumentTradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     if (e.Order.SiteOrderKey == m_LastOrderSiteOrderKey)
     {
         MessageBox.Show(String.Format("Rejected {0} {1}",
             e.Order.SiteOrderKey,
             e.Message));
         gboModifyOrder.Enabled = false;
         buttonDeleteLast.Enabled = false;
     }
 }
コード例 #15
0
 private void OnOrderRejected(object sender, OrderRejectedEventArgs e)
 {
     // Not Implemented
 }
コード例 #16
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>   Event notification for order rejection. </summary>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 void m_instrumentTradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     Console.WriteLine("\nOrderRejected [{0}]", e.Order.SiteOrderKey);
 }
コード例 #17
0
 /// <summary>
 /// Event notification for order rejected
 /// </summary>
 void m_trd_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     Console.WriteLine("Order was rejected: [{0}] '{1}'", e.Order.ToString(), e.Message);
 }
コード例 #18
0
 public void ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     if (e.Order.SiteOrderKey == orderKey)
     {
         // Our parent order has been rejected
         Console.WriteLine("Our parent order has been rejected: " + e.Message);
         Dispose();
     }
     else if (e.Order.SyntheticOrderKey == orderKey)
     {
         // A child order of our parent order has been rejected
         Console.WriteLine("A child order of our parent order has been rejected: " + e.Message);
     }
 }
コード例 #19
0
 /// <summary>
 /// Triggered when the exchange rejects an order action
 /// </summary>
 void tradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     UpdateAuditLog("OrderRejected", e.Order);
 }
コード例 #20
0
 void ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     processOrder(TTOrderStatus.Rejected, e.Order);
 }
コード例 #21
0
 /// <summary>
 /// OrderRejected InstrumentTradeSubscription callback.
 /// </summary>
 /// <param name="sender">Sender (InstrumentTradeSubscription)</param>
 /// <param name="e">OrderRejectedEventArgs</param>
 void m_instrumentTradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     txtOrderBook.Text += String.Format("Rejected {0} {1}{2}",
         e.Order.SiteOrderKey,
         e.Message,
         System.Environment.NewLine);
 }
コード例 #22
0
 public void ts_OrderRejected(object sender, OrderRejectedEventArgs e)
 {
     if (e.Order.SiteOrderKey == orderKey)
     {
         // Our order has been rejected
         Console.WriteLine("Our order has been rejected: " + e.Message);
         Dispose();
     }
 }