cURL
cancelByOrderId
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" }
Cancel a specific order.
Important: You must specify either orderId OR clientOrderId (not both).
orderId
clientOrderId
Trading symbol
"BTC"
Exchange order ID (specify either this or clientOrderId)
"123456789"
Client order ID (specify either this or orderId)
"0x1234567890abcdef1234567890abcdef"
Order canceled successfully
"ok"