diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index 383913f66..86e9f75e6 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -267,11 +267,11 @@ def _download_trades_history(exchange: Exchange, until = None if (timerange and timerange.starttype == 'date'): - since = timerange.startts * 1000 - if timerange.stoptype == 'date': - until = timerange.stopts * 1000 + since = timerange.startts * 1000 + if timerange.stoptype == 'date': + until = timerange.stopts * 1000 else: - since = int(arrow.utcnow().shift(days=-new_pairs_days).float_timestamp) * 1000 + since = int(arrow.utcnow().shift(days=-new_pairs_days).float_timestamp) * 1000 trades = data_handler.trades_load(pair)