really fixing

This commit is contained in:
Jean-Baptiste LE STANG 2018-01-02 14:09:56 +01:00
parent 9e7a4c3717
commit 80c4dea875

View File

@ -97,8 +97,8 @@ class Bittrex(Exchange):
return data['result'] return data['result']
def get_ticker(self, pair: str, refresh: Optional[bool] = True) -> dict: def get_ticker(self, pair: str, refresh: Optional[bool] = True) -> dict:
data = _API.get_ticker(pair.replace('_', '-'))
if refresh or pair not in self.cached_ticker.keys(): if refresh or pair not in self.cached_ticker.keys():
data = _API.get_ticker(pair.replace('_', '-'))
if not data['success']: if not data['success']:
Bittrex._validate_response(data) Bittrex._validate_response(data)
raise OperationalException('{message} params=({pair})'.format( raise OperationalException('{message} params=({pair})'.format(