Esempio n. 1
0
        public async Task GetPublicTicksLevel2()
        {
            // Public feed ticks level2
            List <TTFeedTickLevel2> publicTicksLevel2;

            if (string.IsNullOrEmpty(PublicTicksL2Filter))
            {
                publicTicksLevel2 = await _client.GetPublicAllTicksLevel2Async();
            }
            else
            {
                publicTicksLevel2 = await _client.GetPublicTickLevel2Async(PublicTicksL2Filter);
            }

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