chore: improve error message

part of #11923
This commit is contained in:
Matthias
2025-07-01 20:32:55 +02:00
parent 03df35b49b
commit 25c24ddc9c

View File

@@ -3429,7 +3429,8 @@ class Exchange:
raise InvalidOrderException(f"Amount {stake_amount} too high for {pair}")
raise OperationalException(
"Looped through all tiers without finding a max leverage. Should never be reached"
f"Looped through all tiers without finding a max leverage for {pair}. "
"Should never be reached."
)
elif self.trading_mode == TradingMode.MARGIN: # Search markets.limits for max lev