From cf9ba527bb1b60fb44faf8d59c012f814799edfe Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 15 Jul 2023 16:56:05 +0200 Subject: [PATCH] Include realized_profit in update_dry closes #8877 --- freqtrade/wallets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index da64515a4..ceef8d158 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -84,6 +84,7 @@ class Wallets: tot_profit = Trade.get_total_closed_profit() else: tot_profit = LocalTrade.total_profit + tot_profit += sum(trade.realized_profit for trade in open_trades) tot_in_trades = sum(trade.stake_amount for trade in open_trades) used_stake = 0.0