public FeedTickView(TTFeedTick tick) { Symbol = tick.Symbol; Timestamp = tick.Timestamp.ToString("u"); BestBid = tick.BestBid.ToShortString(); BestAsk = tick.BestAsk.ToShortString(); }
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); } }