Skip to content

Commit f04315f

Browse files
committed
fix: gracefully handle custom stake returning string
closes freqtrade#12421
1 parent 89e68d7 commit f04315f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/wallets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def validate_stake_amount(
382382
max_stake_amount: float,
383383
trade_amount: float | None,
384384
):
385-
if not stake_amount:
385+
if not stake_amount or isinstance(stake_amount, str) or stake_amount <= 0:
386386
self._local_log(
387387
f"Stake amount is {stake_amount}, ignoring possible trade for {pair}.",
388388
level="debug",

0 commit comments

Comments
 (0)