From 6b033c211e366664ab4c54cf50268bc4f47e9bf1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 7 Apr 2025 19:52:35 +0200 Subject: [PATCH] chore: ensure trades are committed after the exit loop --- freqtrade/freqtradebot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 1baf253c0..63357dcd8 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -293,6 +293,7 @@ class FreqtradeBot(LoggingMixin): trades = Trade.get_open_trades() # First process current opened trades (positions) self.exit_positions(trades) + Trade.commit() # Check if we need to adjust our current positions before attempting to enter new trades. if self.strategy.position_adjustment_enable: