Skip to main content
POST
/
cancelOrder
curl --request POST \
--url https://api.hypereth.io/v2/hyperliquid/cancelOrder \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"symbol": "BTC",
"orderId": "123456789"
}'
{
  "status": "ok",
  "id": "1234567890",
  "clientOrderId": "0x1234567890abcdef1234567890abcdef"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
symbol
string
required

Trading symbol

Example:

"BTC"

orderId
string

Exchange order ID (specify either this or clientOrderId)

Example:

"123456789"

clientOrderId
string<uuid>

Client order ID (specify either this or orderId)

Example:

"0x1234567890abcdef1234567890abcdef"

Response

200 - application/json

Order canceled successfully

status
string
Example:

"ok"

id
string | null
clientOrderId
string | null