From 7da991420d0cd7872cfbafc020bcbbfc8609d651 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Sat, 9 Nov 2024 11:24:41 +0100 Subject: [PATCH] [Coinbase] handle CANCEL_QUEUED order status --- Trading/Exchange/coinbase/coinbase_exchange.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Trading/Exchange/coinbase/coinbase_exchange.py b/Trading/Exchange/coinbase/coinbase_exchange.py index 06a61353c..ed85da940 100644 --- a/Trading/Exchange/coinbase/coinbase_exchange.py +++ b/Trading/Exchange/coinbase/coinbase_exchange.py @@ -296,6 +296,8 @@ def fix_order(self, raw, **kwargs): fixed[trading_enums.ExchangeConstantsOrderColumns.TYPE.value] = order_type if fixed[ccxt_enums.ExchangeOrderCCXTColumns.STATUS.value] == "PENDING": fixed[ccxt_enums.ExchangeOrderCCXTColumns.STATUS.value] = trading_enums.OrderStatus.PENDING_CREATION.value + if fixed[ccxt_enums.ExchangeOrderCCXTColumns.STATUS.value] == "CANCEL_QUEUED": + fixed[ccxt_enums.ExchangeOrderCCXTColumns.STATUS.value] = trading_enums.OrderStatus.PENDING_CANCEL.value # sometimes amount is not set if not fixed[ccxt_enums.ExchangeOrderCCXTColumns.AMOUNT.value] \ and fixed[ccxt_enums.ExchangeOrderCCXTColumns.FILLED.value]: