Cancel Order
Cancel an existing order.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | string | Yes | Operation: trade |
| args | list | Yes | Trade arguments |
| > instType | string | Yes | Product type: SPOT |
| > channel | string | Yes | Channel: cancel-order |
| > instId | string | Yes | Product ID (e.g. BTCUSDT) |
| > params | object | Yes | Cancel parameters |
| >> orderId | string | Yes | Order ID to cancel |
Request Example
{
"op": "trade",
"args": [
{
"instType": "SPOT",
"channel": "cancel-order",
"instId": "BTCUSDT",
"params": {
"orderId": "123456789"
}
}
]
}
Response Example
{
"event": "trade",
"arg": [
{
"instType": "SPOT",
"channel": "cancel-order",
"instId": "BTCUSDT",
"params": {
"orderId": "123456789"
}
}
],
"code": "0",
"msg": "Success"
}