From e8b4bcc65d16ccfa7a84b606d030fc37ff8fe8cb Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 28 Nov 2022 19:50:29 +0100 Subject: [PATCH] use default argument --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 5b6b7a5d6..41882674c 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2252,7 +2252,7 @@ class Exchange: if self._exchange_ws: candle_date = int(timeframe_to_prev_date(timeframe).timestamp()) candles = self._exchange_ws.ccxt_object.ohlcvs.get(pair, {}).get(timeframe) - x = self._exchange_ws.klines_last_refresh.get((pair, timeframe, candle_type)) + x = self._exchange_ws.klines_last_refresh.get((pair, timeframe, candle_type), 0) logger.info(f"{candle_date < x}, {candle_date}, {x}") if candles and candles[-1][0] > min_date and candle_date < x: # Usable result ...