From 409729f9d25e7809073795e05043fca47957e899 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 17 Mar 2024 17:00:18 +0100 Subject: [PATCH] Temporarily support 'finish' in the order, too --- freqtrade/exchange/gate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/gate.py b/freqtrade/exchange/gate.py index 860a9faee..31a161775 100644 --- a/freqtrade/exchange/gate.py +++ b/freqtrade/exchange/gate.py @@ -104,7 +104,8 @@ class Gate(Exchange): pair=pair, params={'stop': True} ) - if order.get('status', 'open') == 'closed': + if order.get('status', 'open') in ('closed', 'finish'): + # TODO: Should check for "finish" once ccxt 4.2.75 is available # Places a real order - which we need to fetch explicitly. val = 'trade_id' if self.trading_mode == TradingMode.FUTURES else 'fired_order_id'