Hello!
I’m trying to test my application using Exchange/PRO api on sandbox environment.
Whenever I request my orders via
https://api.exchange.coinbase.com/orders endpoint (with statuses open, pending, active), I receive list of orders.
e.g.:
{
“client_oid”: “<client_order_id>”,
“created_at”: “2023-05-03T16:31:55.011071Z”,
“executed_value”: “0.0000000000000000”,
“fill_fees”: “0.0000000000000000”,
“filled_size”: “0.00000000”,
“id”: “d69a6eec-ddc7-413f-9f78-50c352ecce91”,
“market_type”: “spot”,
“post_only”: false,
“price”: “450000.00000000”,
“product_id”: “BTC-USD”,
“profile_id”: “<profile_id>”,
“settled”: false,
“side”: “sell”,
“size”: “0.00000223”,
“status”: “open”,
“time_in_force”: “GTC”,
“type”: “limit”
},
But it looks like some of orders returned by /orders endpoint are not active. I can’t cancel them neither via FIX nor HTTP request.
FIX Order Cancel Request returns message with FIX tags: 35=9 58=order not open.
And HTTP request for cancel all orders (with profile_id and product_id of freezed orders) returns empty json array.
How could I cancel these orders?