mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 09:31:12 +00:00
Also have "badrequest" act as InvalidOrderException
causing an emergencyexit. closes #9456
This commit is contained in:
parent
d598c91de3
commit
a044649eef
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user