Temporarily support 'finish' in the order, too
This commit is contained in:
@@ -104,7 +104,8 @@ class Gate(Exchange):
|
|||||||
pair=pair,
|
pair=pair,
|
||||||
params={'stop': True}
|
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.
|
# Places a real order - which we need to fetch explicitly.
|
||||||
val = 'trade_id' if self.trading_mode == TradingMode.FUTURES else 'fired_order_id'
|
val = 'trade_id' if self.trading_mode == TradingMode.FUTURES else 'fired_order_id'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user