From 2a526a815e65cfea33771b03c92d48b204c58f1f Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Dec 2024 17:53:14 +0100 Subject: [PATCH] fix: don't over-state stake-amount on first entry closes #11135 --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index ed08b99af..52175e687 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -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(