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",
  "dexReceivedTimestamp": 1710000000900,
  "hyperethTimestamp": 1710000001000
}

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"

isFlipOrder
boolean
default:false

Set to true when canceling a flip order (Kuru only). Flip orders use a different cancellation method than regular limit orders.

accountId
string
default:default

Account identifier for multi-account support (Kuru only). If not specified, uses the default account. Note: If the account is locked by a running strategy, the cancellation will be rejected.

Response

200 - application/json

Order canceled successfully

status
string
Example:

"ok"

id
string | null
clientOrderId
string | null
dexReceivedTimestamp
integer<int64>

Timestamp when HyperETH API server received this message from the venue (in milliseconds)

hyperethTimestamp
integer<int64>

Timestamp when HyperETH API server completed all processing before returning to client (in milliseconds)