From a044649eeff563934776f4f813d608447864a4e0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 23 Nov 2023 06:51:29 +0100 Subject: [PATCH] Also have "badrequest" act as InvalidOrderException causing an emergencyexit. closes #9456 --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 603c161cf..e8509bf40 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -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(