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)))); }
public async Task <IEnumerable <IMarket> > GetMarketsAsync() { return(await _client.GetMarkets()); }