fix: ensure stoploss on exchange is canceled once the trade closes.

This commit is contained in:
Matthias
2025-12-02 06:14:48 +01:00
parent 4e6ea1d2ba
commit 4b2d099258

View File

@@ -2387,6 +2387,8 @@ class FreqtradeBot(LoggingMixin):
self.strategy.ft_stoploss_adjust( self.strategy.ft_stoploss_adjust(
current_rate, trade, datetime.now(UTC), profit, 0, after_fill=True current_rate, trade, datetime.now(UTC), profit, 0, after_fill=True
) )
if not trade.is_open:
self.cancel_stoploss_on_exchange(trade)
# Updating wallets when order is closed # Updating wallets when order is closed
self.wallets.update() self.wallets.update()
return trade return trade