mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 09:31:12 +00:00
Reduce ccxt.pro verbosity
This commit is contained in:
parent
f33c4db572
commit
7e736a34dd
|
@ -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:
|
||||
|
|
|
@ -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)}, "
|
||||
|
|
Loading…
Reference in New Issue
Block a user