Exemple #1
0
        public static void GetPublicTicks(TickTraderWebClient client)
        {
            // Public feed ticks
            List <TTFeedTick> publicTicks = client.GetPublicAllTicks();

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

            TTFeedTick publicTick = client.GetPublicTick(publicTicks[0].Symbol).FirstOrDefault();

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