Use correct exception type for ccxt.InvalidOrder

This commit is contained in:
Matthias
2023-03-13 20:13:12 +01:00
parent 8fd13933c3
commit 487469680f
2 changed files with 5 additions and 5 deletions

View File

@@ -1087,7 +1087,7 @@ class Exchange:
f'Tried to {side} amount {amount} at rate {rate}.'
f'Message: {e}') from e
except ccxt.InvalidOrder as e:
raise ExchangeError(
raise InvalidOrderException(
f'Could not create {ordertype} {side} order on market {pair}. '
f'Tried to {side} amount {amount} at rate {rate}. '
f'Message: {e}') from e