예제 #1
0
        public async Task GetTicksLevel2()
        {
            // Account feed ticks level2
            List <TTFeedTickLevel2> ticksLevel2;

            if (string.IsNullOrEmpty(TicksL2Filter))
            {
                ticksLevel2 = await _client.GetAllTicksLevel2Async();
            }
            else
            {
                ticksLevel2 = await _client.GetTickLevel2Async(TicksL2Filter);
            }

            TicksL2 = ticksLevel2 != null ? new ObservableCollection <FeedTickL2View>(ticksLevel2.Select(t => new FeedTickL2View(t))) : null;
        }