Skip to content

Commit ecdd84e

Browse files
committed
fix: "until" shouldn't be in the future.
part of freqtrade#11786
1 parent 0ad6a6a commit ecdd84e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

freqtrade/exchange/exchange.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,9 +1790,9 @@ def fetch_orders(
17901790
if (limit := self._ft_has.get("fetch_orders_limit_minutes")) is not None:
17911791
orders = []
17921792
while since < dt_now():
1793-
until = since + timedelta(minutes=limit - 1)
1794-
orders += self._fetch_orders(pair, since, params={"until": dt_ts(until)})
1795-
since = until
1793+
orders += self._fetch_orders(pair, since)
1794+
# Since with 1 minute overlap
1795+
since = since + timedelta(minutes=limit - 1)
17961796
return orders
17971797

17981798
else:

0 commit comments

Comments
 (0)