Beispiel #1
0
        public async void FetchData()
        {
            if (SelectedExpiration == null)
            {
                return;
            }
            if (Symbol == null)
            {
                return;
            }

            var od = await GoogleOptions.GetOptionChains(Symbol.ToUpper(), SelectedExpiration.y.To <int>(),
                                                         SelectedExpiration.m.To <int>(), SelectedExpiration.d.To <int>());

            ShowOptionPairs(od);
        }
Beispiel #2
0
        public async void GetInitialData()
        {
            if (Symbol == null)
            {
                return;
            }

            var od = await GoogleOptions.GetOptionChains(Symbol.ToUpper());

            foreach (var e in od.expirations)
            {
                Expirations.Add(e);
            }

            ShowOptionPairs(od);
        }