From 910b3ad536ab94de19182ca461eec6c32b6da36d Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Mon, 15 Apr 2024 15:40:57 -0400 Subject: [PATCH] allow adjust trade position, even if there is an open order --- freqtrade/freqtradebot.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index e4835034d..f61a9c3b0 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -608,16 +608,13 @@ class FreqtradeBot(LoggingMixin): """ # Walk through each pair and check if it needs changes for trade in Trade.get_open_trades(): - # If there is any open orders, wait for them to finish. - # TODO Remove to allow mul open orders - if not trade.has_open_orders: - # Do a wallets update (will be ratelimited to once per hour) - self.wallets.update(False) - try: - self.check_and_call_adjust_trade_position(trade) - except DependencyException as exception: - logger.warning( - f"Unable to adjust position of trade for {trade.pair}: {exception}") + # Do a wallets update (will be ratelimited to once per hour) + self.wallets.update(False) + try: + self.check_and_call_adjust_trade_position(trade) + except DependencyException as exception: + logger.warning( + f"Unable to adjust position of trade for {trade.pair}: {exception}") def check_and_call_adjust_trade_position(self, trade: Trade): """