From f04315fa8fa48d466395453dad11d9c4ef06698d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 25 Oct 2025 09:42:41 +0200 Subject: [PATCH] fix: gracefully handle custom stake returning string closes #12421 --- freqtrade/wallets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index db14ec499..1630ac600 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -382,7 +382,7 @@ class Wallets: max_stake_amount: float, trade_amount: float | None, ): - if not stake_amount: + if not stake_amount or isinstance(stake_amount, str) or stake_amount <= 0: self._local_log( f"Stake amount is {stake_amount}, ignoring possible trade for {pair}.", level="debug",