Beispiel #1
0
        public async Task <decimal> GetReportingAmount(string baseCcy, decimal baseAmount, string reportingCurrency, string exchange)
        {
            decimal price = 0;

            switch (exchange)
            {
            case Constants.Bittrex:
                price = await _bittrexService.GetReportingAmount(baseCcy, baseAmount, reportingCurrency);

                break;

            case Constants.Poloniex:
                price = await _poloniexService.GetReportingAmount(baseCcy, baseAmount, reportingCurrency);

                break;

            case Constants.Binance:
                price = await _binanceService.GetReportingAmount(baseCcy, baseAmount, reportingCurrency);

                break;
            }

            return(price);
        }