Exemple #1
0
        public async Task <IActionResult> Get(string baseCurrency = null)
        {
            var items = await _bittrexClient.GetMarkets();

            if (baseCurrency == null)
            {
                return(Ok(items));
            }

            return(Ok(items.Where(i =>
                                  string.Equals(i.BaseCurrency, baseCurrency, StringComparison.OrdinalIgnoreCase))));
        }
Exemple #2
0
 public async Task <IEnumerable <IMarket> > GetMarketsAsync()
 {
     return(await _client.GetMarkets());
 }