From 53702bfdfe9d7dbd737cb2fc5c283324056b67ac Mon Sep 17 00:00:00 2001 From: Joe Schr <8218910+TheJoeSchr@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:35:19 +0100 Subject: [PATCH] fix: make `until` non-optional --- freqtrade/exchange/exchange.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 22b96dfb0..4fd4c3b21 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2609,11 +2609,10 @@ class Exchange: logger.debug(f"_async_get_trade_history(), pair: {pair}, " f"since: {since}, until: {until}, from_id: {from_id}") - if self._trades_pagination == 'time': - if until is None: - until = ccxt.Exchange.milliseconds() + if until is None: + until = ccxt.Exchange.milliseconds() logger.debug(f"Exchange milliseconds: {until}") - + if self._trades_pagination == 'time': return await self._async_get_trade_history_time( pair=pair, since=since, until=until) elif self._trades_pagination == 'id':