Include realized_profit in update_dry

closes #8877
This commit is contained in:
Matthias 2023-07-15 16:56:05 +02:00
parent d0e0e156b1
commit cf9ba527bb

View File

@ -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