private async Task <JArray> GetJson()
        {
            var results = new List <JObject>();

            foreach (var baseCcy in PriceSource.GetAllBaseCurrencies())
            {
                //We do multiple requests, one for each base ccy
                var symbols         = string.Join(',', PriceSource.GetAllQuoteCurrencies(baseCcy));
                var queryParameters = $"?base={baseCcy}&symbols={symbols}";
                var json            = await _adapter.GetRequestJson(queryParameters);

                results.Add(json);
            }
            return(new JArray(results));
        }
Exemple #2
0
        private async Task <JArray> GetJson()
        {
            var json = await _adapter.GetRequestJson();

            return(json.Value <JArray>(jsonDataPropertyName));
        }