Unified REST APITrading

Cancel Order

Cancel a specific order.

Important: You must specify either orderId OR clientOrderId (not both).

Kuru Flip Orders: When canceling a flip order on Kuru, set isFlipOrder: true.

POST
/cancelOrder

Authorization

ApiKeyAuth
X-API-KEY<token>

In: header

Request Body

application/json

symbol*stringrequired

Trading symbol

Example: BTC
orderId?string

Exchange order ID (specify either this or clientOrderId)

Example: 123456789
clientOrderId?string

Client order ID (specify either this or orderId)

Example: 0x1234567890abcdef1234567890abcdef
isFlipOrder?booleandefault: false

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

accountId?stringdefault: "default"

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

Response Body

application/json

curl -X POST "https://api.hypereth.io/v2/hyperliquid/cancelOrder" \  -H "Content-Type: application/json" \  -d '{    "symbol": "BTC",    "orderId": "123456789"  }'
{
  "status": "ok",
  "id": "1234567890",
  "clientOrderId": "0x1234567890abcdef1234567890abcdef",
  "dexReceivedTimestamp": 1710000000900,
  "hyperethTimestamp": 1710000001000
}