From 3221f883d34b112acf5991d31d353c1c1fa47e4d Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 22 Jan 2019 06:58:51 +0100 Subject: [PATCH] Wrap line correctly --- freqtrade/exchange/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index 62730e034..abbdae610 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -545,8 +545,9 @@ class Exchange(object): # Calculating ticker interval in second interval_in_sec = constants.TICKER_INTERVAL_MINUTES[ticker_interval] * 60 - if not (self._pairs_last_refresh_time.get((pair, ticker_interval), 0) + interval_in_sec >= - arrow.utcnow().timestamp and (pair, ticker_interval) in self._klines): + if not ((self._pairs_last_refresh_time.get((pair, ticker_interval), 0) + + interval_in_sec) >= arrow.utcnow().timestamp + and (pair, ticker_interval) in self._klines): input_coroutines.append(self._async_get_candle_history(pair, ticker_interval)) else: logger.debug("Using cached ohlcv data for %s, %s ...", pair, ticker_interval)