use default argument

This commit is contained in:
Matthias
2022-11-28 19:50:29 +01:00
parent dadc96306f
commit e8b4bcc65d

View File

@@ -2252,7 +2252,7 @@ class Exchange:
if self._exchange_ws: if self._exchange_ws:
candle_date = int(timeframe_to_prev_date(timeframe).timestamp()) candle_date = int(timeframe_to_prev_date(timeframe).timestamp())
candles = self._exchange_ws.ccxt_object.ohlcvs.get(pair, {}).get(timeframe) 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}") logger.info(f"{candle_date < x}, {candle_date}, {x}")
if candles and candles[-1][0] > min_date and candle_date < x: if candles and candles[-1][0] > min_date and candle_date < x:
# Usable result ... # Usable result ...