Cancel HF order by orderId
This endpoint can be used to cancel a high-frequency order by orderId.
HTTP REQUEST
DELETE /api/v1/hf/orders/{orderId}?symbol={symbol}
Example
DELETE /api/v1/hf/orders/5bd6e9286d99522a52e458de?symbol=ETH-BTC
// response
{
"code": "200000",
"data": {
"orderId": "630625dbd9180300014c8d52"
}
}
API KEY PERMISSIONS
This endpoint requires the Spot Trading permission.
REQUEST URL
This endpoint support Spot URL
REQUEST RATE LIMIT
Spot weight
:1
PARAMETERS
Param | Type | Mandatory | Description |
---|---|---|---|
orderId | String | Yes | Path parameter, Order Id unique identifier |
symbol | String | Yes | Trading pair, such as, ETH-BTC |
TIP
The input parameter orderId is a unique identifier of the order created by the server and is different from the clientOId created by the user.
TIP
If an order cannot be cancelled (if it has already been filled or cancelled),an error message will be returned, and you can judge what the reason was based on the returned msg
.
RESPONSES
Param | Description |
---|---|
orderId | Order id of the cancelled order |