Fix coinmarketcap ticker
This commit is contained in:
parent
57fc9df5f3
commit
3246c60472
@ -196,7 +196,7 @@ class CryptoToFiatConverter(object):
|
|||||||
self._coinmarketcap.ticker(
|
self._coinmarketcap.ticker(
|
||||||
currency=self._cryptomap[crypto_symbol],
|
currency=self._cryptomap[crypto_symbol],
|
||||||
convert=fiat_symbol
|
convert=fiat_symbol
|
||||||
)[0]['price_' + fiat_symbol.lower()]
|
)['data']['quotes'][fiat_symbol.upper()]['price']
|
||||||
)
|
)
|
||||||
except BaseException as ex:
|
except BaseException as ex:
|
||||||
logger.error("Error in _find_price: %s", ex)
|
logger.error("Error in _find_price: %s", ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user