Skip to main content

Cancel Order

Cancel an existing order.

Request Parameters

ParameterTypeRequiredDescription
opstringYesOperation: trade
argslistYesTrade arguments
> instTypestringYesProduct type: SPOT
> channelstringYesChannel: cancel-order
> instIdstringYesProduct ID (e.g. BTCUSDT)
> paramsobjectYesCancel parameters
>> orderIdstringYesOrder 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"
}