From 0fd2aca47e4a1b34329fbcac259c891906143cf8 Mon Sep 17 00:00:00 2001 From: Joe Schr <8218910+TheJoeSchr@users.noreply.github.com> Date: Sun, 11 Feb 2024 13:07:57 +0100 Subject: [PATCH] Remove `if since` --- freqtrade/data/history/history_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index 98f50ecd1..705f806bb 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -366,9 +366,8 @@ def _download_trades_history(exchange: Exchange, # Reset since to the last available point # - 5 seconds (to ensure we're getting all trades) since = trades.iloc[-1]['timestamp'] - (5 * 1000) - if since: - logger.info(f"Using last trade date -5s - Downloading trades for {pair} " - f"since: {format_ms_time(since)}.") + logger.info(f"Using last trade date -5s - Downloading trades for {pair} " + f"since: {format_ms_time(since)}.") if not since: since = dt_ts(dt_now() - timedelta(days=new_pairs_days))