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]: