From 7e736a34dd46ad19587c11c516e8463dea3211d2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 26 May 2024 19:10:32 +0200 Subject: [PATCH] Reduce ccxt.pro verbosity --- freqtrade/exchange/exchange.py | 3 +-- freqtrade/exchange/exchange_ws.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 5dac32635..c852f53b2 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2271,7 +2271,6 @@ class Exchange: candle_limit = self.ohlcv_candle_limit(timeframe, candle_type) min_date = int(date_minus_candles(timeframe, candle_limit - 5).timestamp()) - last_refresh = self._pairs_last_refresh_time.get((pair, timeframe, candle_type), 0) if self._exchange_ws: candle_date = int(timeframe_to_prev_date(timeframe).timestamp() * 1000) prev_candle_date = int(date_minus_candles(timeframe, 1).timestamp() * 1000) @@ -2298,7 +2297,7 @@ class Exchange: ) # Check if 1 call can get us updated candles without hole in the data. - if min_date < last_refresh: + if min_date < self._pairs_last_refresh_time.get((pair, timeframe, candle_type), 0): # Cache can be used - do one-off call. not_all_data = False else: diff --git a/freqtrade/exchange/exchange_ws.py b/freqtrade/exchange/exchange_ws.py index 7cc58978f..2f46c78f2 100644 --- a/freqtrade/exchange/exchange_ws.py +++ b/freqtrade/exchange/exchange_ws.py @@ -158,7 +158,7 @@ class ExchangeWS: # Refreshed after candle was complete. # logger.info(f"{candles[-1][0]} >= {candle_date}") drop_hint = candles[-1][0] >= candle_date - logger.info( + logger.debug( f"watch result for {pair}, {timeframe} with length {len(candles)}, " f"{format_ms_time(candles[-1][0])}, " f"lref={format_ms_time(refresh_date)}, "