Пример #1
0
        public static void GetTicks(TickTraderWebClient client)
        {
            // Account feed ticks
            List <TTFeedTick> ticks = client.GetAllTicks();

            foreach (var t in ticks)
            {
                Console.WriteLine("{0} tick: {1}, {2}", t.Symbol, t.BestBid.Price, t.BestAsk.Price);
            }

            TTFeedTick tick = client.GetTick(ticks[0].Symbol).FirstOrDefault();

            if (tick != null)
            {
                Console.WriteLine("{0} tick timestamp: {1}", tick.Symbol, tick.Timestamp);
            }
        }