Cancel Order
Cancel an active spot trading order by order ID and symbol.
HTTP Request
POST /api/v1/spot/trade/cancel-order
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Trading pair symbol (e.g., BTCUSDT) |
| orderId | string | Yes | Order ID to cancel |
Request Example
curl -X POST "https://open-api.bydoxe.com/api/v1/spot/trade/cancel-order" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTCUSDT",
"orderId": "123456789"
}'
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code |
| msg | string | Response message |
| requestTime | number | Request timestamp in milliseconds |
| data | object | Cancel order response data |
| > orderId | string | Canceled order ID |
Response Example
Success Response
{
"code": "00000",
"msg": "success",
"requestTime": 1732000000000,
"data": {
"orderId": "123456789"
}
}
Error Codes
| Code | Message |
|---|---|
| 40001 | Parameter cannot be empty |
| 40002 | Unauthorized |
| 40034 | Currency pair does not exist |
| 43116 | Order does not exist |
| 43116 | Order does not match the symbol |
| 43117 | Order cannot be cancelled |
| 50000 | Wallet not found |
| 50000 | System error |