force refresh is the value has never been set

This commit is contained in:
Jean-Baptiste LE STANG 2018-01-02 11:00:22 +01:00
parent 7d21015b52
commit 3a0569cfd3

View File

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