Unified REST APITrading

Cancel All Orders

Cancel multiple orders.

Platform Support: Available on hyperliquid, aster, lighter. Not available on kuru.

POST
/cancelAllOrders

Authorization

ApiKeyAuth
X-API-KEY<token>

In: header

Request Body

application/json

symbol?string

Required for symbol-scoped cancellation

scope?enum<string>default: "symbol"
Available options: symbolall
scheduledTime?integer

Future timestamp for scheduled cancel

cancelScheduled?boolean

Abort scheduled cancel operation

timeInForce?enum<string>default: "immediate"
Available options: immediatescheduledabort_scheduled

Response Body

application/json

curl -X POST "https://api.hypereth.io/v2/hyperliquid/cancelAllOrders" \  -H "Content-Type: application/json" \  -d '{}'
{
  "status": "ok",
  "canceled": [
    "123",
    "124",
    "125"
  ],
  "message": "3 orders canceled",
  "dexReceivedTimestamp": 1710000000900,
  "hyperethTimestamp": 1710000001000
}