public async Task <decimal> GetDollarAmount(string baseCcy, decimal btcAmount, string exchange) { decimal price = 0; switch (exchange) { case Constants.Bittrex: price = await _bittrexService.GetDollarAmount(baseCcy, btcAmount); break; case Constants.Poloniex: price = await _poloniexService.GetDollarAmount(baseCcy, btcAmount); break; case Constants.Binance: price = await _binanceService.GetDollarAmount(baseCcy, btcAmount); break; } return(price); }