fix: don't over-state stake-amount on first entry

closes #11135
This commit is contained in:
Matthias
2024-12-23 17:53:14 +01:00
parent 0a81658881
commit 2a526a815e

View File

@@ -1197,7 +1197,7 @@ class FreqtradeBot(LoggingMixin):
trade.pair, side="entry", is_short=trade.is_short, refresh=False
)
stake_amount = trade.stake_amount
if not fill:
if not fill and trade.nr_of_successful_entries > 0:
# If we have open orders, we need to add the stake amount of the open orders
# as it's not yet included in the trade.stake_amount
stake_amount += sum(