errfff ... no comment
This commit is contained in:
parent
90ad21cfaf
commit
ce260e6493
@ -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'):
|
||||||
|
Loading…
Reference in New Issue
Block a user