errfff ... no comment

This commit is contained in:
Jean-Baptiste LE STANG 2017-12-31 17:43:16 +01:00
parent 90ad21cfaf
commit ce260e6493

View File

@ -148,9 +148,9 @@ class Bittrex(Exchange):
raise ValueError( raise ValueError(
'Cannot parse tick_interval: {}'.format(tick_interval)) 'Cannot parse tick_interval: {}'.format(tick_interval))
if pair in _cache.keys(): if pair in _cache.keys():
_cache[pair] = self.update_with_latest_ticker(pair) data = self.update_with_latest_ticker(pair)
else: else:
_cache[pair] = _API_V2.get_candles(pair.replace('_', '-'), interval) data = _API_V2.get_candles(pair.replace('_', '-'), interval)
# These sanity check are necessary because bittrex cannot keep their # These sanity check are necessary because bittrex cannot keep their
# API stable. # API stable.
if not data.get('result'): if not data.get('result'):