Skip to content

Commit 25c24dd

Browse files
committed
chore: improve error message
part of freqtrade#11923
1 parent 03df35b commit 25c24dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

freqtrade/exchange/exchange.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3429,7 +3429,8 @@ def get_max_leverage(self, pair: str, stake_amount: float | None) -> float:
34293429
raise InvalidOrderException(f"Amount {stake_amount} too high for {pair}")
34303430

34313431
raise OperationalException(
3432-
"Looped through all tiers without finding a max leverage. Should never be reached"
3432+
f"Looped through all tiers without finding a max leverage for {pair}. "
3433+
"Should never be reached."
34333434
)
34343435

34353436
elif self.trading_mode == TradingMode.MARGIN: # Search markets.limits for max lev

0 commit comments

Comments
 (0)