From 8b5d454b50046edfd09d2dbf92d226fbf14346f6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 30 Apr 2022 17:44:57 +0200 Subject: [PATCH] Fix subtle bug in trades download --- freqtrade/data/history/history_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index af3a39277..eb36d2042 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -323,8 +323,9 @@ def _download_trades_history(exchange: Exchange, try: until = None - if (timerange and timerange.starttype == 'date'): - since = timerange.startts * 1000 + if timerange: + if timerange.starttype == 'date': + since = timerange.startts * 1000 if timerange.stoptype == 'date': until = timerange.stopts * 1000 else: