fix quotes

This commit is contained in:
sidhujag 2018-06-03 17:52:25 -07:00
parent 46a2f4e899
commit 5fbd687eb3
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class CoinmarketcapRateSource implements IRateSource {
}
Map<String, Object> ticker = api.getTickers(cryptoId, fiatCurrency);
Map<String, Object> quotes = (Map<String, Object>) ticker.get('quotes');
Map<String, Object> quotes = (Map<String, Object>) ticker.get("quotes");
Map<String, Object> quote = (Map<String, Object>) quotes.get(fiatCurrency);
BigDecimal price = (BigDecimal) quote.get("price");
/*if (cryptoCurrency.equalsIgnoreCase(ticker.getSymbol())) {