Cancel HF order by orderId

Cancel a single order by orderId. If the order cannot be canceled (sold or canceled), an error message will be returned, and the reason can be obtained according to the returned msg.

HTTP REQUEST

DELETE /api/v3/hf/margin/orders/{orderId}?symbol={symbol}

Example

DELETE /api/v3/hf/margin/orders/5bd6e9286d99522a52e458de?symbol=ETH-BTC

//Response
{
  "code": "200000",
  "data": {
    "orderId": "630625dbd9180300014c8d52"
  }
}
API KEY PERMISSIONS

This endpoint requires the Margin Trading permission.

REQUEST URL

This endpoint support Spot URL

REQUEST RATE LIMIT

Spot weight:5

PARAMETERS
Param Type Mandatory Description
orderId String Yes Path parameter, Order Id unique identifier
symbol String Yes symbol, 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.

RESPONSES
Param Description
orderId Order id of the cancelled order