From ecdd84efd8f851b560382547a7963dba7f3b8510 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 23 May 2025 07:26:39 +0200 Subject: [PATCH] fix: "until" shouldn't be in the future. part of #11786 --- freqtrade/exchange/exchange.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 83d199cd3..d6cef0253 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -1790,9 +1790,9 @@ class Exchange: if (limit := self._ft_has.get("fetch_orders_limit_minutes")) is not None: orders = [] while since < dt_now(): - until = since + timedelta(minutes=limit - 1) - orders += self._fetch_orders(pair, since, params={"until": dt_ts(until)}) - since = until + orders += self._fetch_orders(pair, since) + # Since with 1 minute overlap + since = since + timedelta(minutes=limit - 1) return orders else: