diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 31ece5ba4..925dc66f0 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2596,10 +2596,10 @@ class Exchange: if ticks and cache: idx = -2 if drop_incomplete and len(ticks) > 1 else -1 self._pairs_last_refresh_time[(pair, timeframe, c_type)] = ticks[idx][0] - # keeping parsed dataframe in cache ohlcv_df = ohlcv_to_dataframe( ticks, timeframe, pair=pair, fill_missing=True, drop_incomplete=drop_incomplete ) + # keeping parsed dataframe in cache if cache: if (pair, timeframe, c_type) in self._klines: old = self._klines[(pair, timeframe, c_type)]