From bc8fc3ab09648f6018ec1126076d517b7db85bd2 Mon Sep 17 00:00:00 2001 From: Reigo Reinmets Date: Sun, 26 Dec 2021 20:09:18 +0200 Subject: [PATCH] We can actually call recalc_open_trade_value less since it's being called eventually anyway. --- freqtrade/freqtradebot.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index cf724f6a1..4e9cf9ab9 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1370,7 +1370,6 @@ class FreqtradeBot(LoggingMixin): logger.info(f"Updating order from exchange: {order}") trade.update_order(order) - trade.recalc_trade_from_orders() if self.exchange.check_order_canceled_empty(order): # Trade has been cancelled on exchange @@ -1384,7 +1383,6 @@ class FreqtradeBot(LoggingMixin): abs_tol=constants.MATH_CLOSE_PREC): order['amount'] = new_amount order.pop('filled', None) - trade.recalc_open_trade_value() except DependencyException as exception: logger.warning("Could not update trade amount: %s", exception)