Add offset to "fetch_orders" to avoid missing the initial order

This commit is contained in:
Matthias
2023-09-16 17:48:31 +02:00
parent 5d8e0573f6
commit c90be601f5

View File

@@ -456,7 +456,8 @@ class FreqtradeBot(LoggingMixin):
Only used balance disappeared, which would make exiting impossible. Only used balance disappeared, which would make exiting impossible.
""" """
try: try:
orders = self.exchange.fetch_orders(trade.pair, trade.open_date_utc) orders = self.exchange.fetch_orders(
trade.pair, trade.open_date_utc - timedelta(seconds=10))
prev_exit_reason = trade.exit_reason prev_exit_reason = trade.exit_reason
prev_trade_state = trade.is_open prev_trade_state = trade.is_open
for order in orders: for order in orders: