Пример #1
0
        /// <summary>
        /// OrderAdded InstrumentTradeSubscription callback.
        /// </summary>
        /// <param name="sender">Sender (InstrumentTradeSubscription)</param>
        /// <param name="e">OrderAddedEventArgs</param>
        void m_instrumentTradeSubscription_OrderAdded(object sender, TT.OrderAddedEventArgs e)
        {
            cout("TT Order Added: {0} {1}|{2}@{3}", e.Order.SiteOrderKey, e.Order.BuySell.ToString(), LimitOrMarketPrice(e.Order));

            /*txtOrderBook.Text += String.Format("Added {0} {1}|{2}@{3}{4}",
             *  e.Order.SiteOrderKey,
             *  e.Order.BuySell.ToString(),
             *  e.Order.OrderQuantity.ToString(),
             *  e.Order.OrderType == OrderType.Limit ? e.Order.LimitPrice.ToString() : "Market Price",
             *  System.Environment.NewLine);*/
        }
Пример #2
0
 private void TT_OrderAdded(object sender, TradingTechnologies.TTAPI.OrderAddedEventArgs eventArgs)
 {
     m_ParentHub.HubEventEnqueue(eventArgs);
 }
Пример #3
0
        private void TT_OrderAdded(object sender, TradingTechnologies.TTAPI.OrderAddedEventArgs eventArgs)
        {
            Order order = eventArgs.Order;

            SendMessage("OrderAdded", order);
        }