Hi.
I’m not sure what I am doing wrong so DELETE on /orders/{order_id} doesn’t work.
Here’s my scenario:
curl --location --request GET 'https://api-public.sandbox.pro.coinbase.com/orders?product_id=BTC-USD&status=open' \
--header 'Content-Type: application/json' \
--header 'CB-ACCESS-KEY: xxx' \
--header 'CB-ACCESS-PASSPHRASE: xxx' \
--header 'CB-ACCESS-SIGN: xxx=' \
--header 'CB-ACCESS-TIMESTAMP: 1656428496'
Response:
[
{
"id": "80aae251-bd8e-4b45-8649-a0eace9b35b7",
"client_oid": "73bfd9c5-096e-4757-d2a8-dab7337d6aef",
"price": "29300.00000000",
"size": "10.00000000",
"product_id": "BTC-USD",
"profile_id": "f56563c8-5f19-4647-87e5-423c391e3a6b",
"side": "sell",
"type": "limit",
"time_in_force": "GTC",
"post_only": false,
"created_at": "2022-05-18T07:57:29.54455Z",
"fill_fees": "11.1513245040000000",
"filled_size": "0.38059128",
"executed_value": "11151.3245040000000000",
"status": "open",
"settled": false
}
]
Now, I’m trying to delete the order:
curl --location --request DELETE 'https://api-public.sandbox.pro.coinbase.com/orders/80aae251-bd8e-4b45-8649-a0eace9b35b7' \
--header 'Content-Type: application/json' \
--header 'CB-ACCESS-KEY: xxx' \
--header 'CB-ACCESS-PASSPHRASE: xxx' \
--header 'CB-ACCESS-SIGN: xxx=' \
--header 'CB-ACCESS-TIMESTAMP: 1656428496'
Response:
{
"message": "order not found"
}
Could please advice me why it’s not working?