From c72e9c3ceff827caf95a7ea6a1a15027a650147a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste LE STANG Date: Tue, 2 Jan 2018 11:00:22 +0100 Subject: [PATCH] force refresh is the value has never been set --- freqtrade/exchange/bittrex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/bittrex.py b/freqtrade/exchange/bittrex.py index c153091d0..c1ea0608f 100644 --- a/freqtrade/exchange/bittrex.py +++ b/freqtrade/exchange/bittrex.py @@ -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(