/// <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); }
/// <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); }
/// <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; } }
/// <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); } }
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); } } }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <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); }
void m_ts_OrderRejected(object sender, OrderRejectedEventArgs e) { Console.WriteLine("Order was rejected."); Console.WriteLine(e.Message); }
void ts_OrderRejected(object sender, OrderRejectedEventArgs e) { Console.WriteLine("OrderRejected"); Console.WriteLine(OrderToString(e.Order)); }
/// <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 }
/// <summary> /// Event notification for order rejected /// </summary> void m_ts_OrderRejected(object sender, OrderRejectedEventArgs e) { Console.WriteLine("Order was rejected."); }
/// <summary> /// Triggered when the exchange rejects an order action /// </summary> void tradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e) { UpdateAuditLog("OrderRejected", e.Order); }
private void TT_OrderRejected(object sender, OrderRejectedEventArgs eventArgs) { m_ParentHub.HubEventEnqueue(eventArgs); }
private void OnOrderRejected(object sender, OrderRejectedEventArgs e) { // Not Implemented }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Event notification for order rejection. </summary> //////////////////////////////////////////////////////////////////////////////////////////////////// void m_instrumentTradeSubscription_OrderRejected(object sender, OrderRejectedEventArgs e) { Console.WriteLine("\nOrderRejected [{0}]", e.Order.SiteOrderKey); }
/// <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); }
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); } }
void ts_OrderRejected(object sender, OrderRejectedEventArgs e) { processOrder(TTOrderStatus.Rejected, e.Order); }
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(); } }