Also have "badrequest" act as InvalidOrderException

causing an emergencyexit.

closes #9456
This commit is contained in:
Matthias 2023-11-23 06:51:29 +01:00
parent d598c91de3
commit a044649eef

View File

@ -1231,7 +1231,7 @@ class Exchange:
f'Insufficient funds to create {ordertype} sell order on market {pair}. '
f'Tried to sell amount {amount} at rate {limit_rate}. '
f'Message: {e}') from e
except ccxt.InvalidOrder as e:
except (ccxt.InvalidOrder, ccxt.BadRequest) as e:
# Errors:
# `Order would trigger immediately.`
raise InvalidOrderException(