fix: gracefully handle custom stake returning string

closes #12421
This commit is contained in:
Matthias
2025-10-25 09:42:41 +02:00
parent 89e68d7d4d
commit f04315fa8f

View File

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