Cancel a limit order (CeFi or DeFi)
POST/orders/:id/cancel
Venue-polymorphic cancel. The payloads field is the signal:
- CeFi orders are canceled immediately and return
202 Acceptedwith nopayloads. PollGET /orders/{id}/statusfor the terminal state. - DeFi (Hyperliquid) resting orders return
200 OKwith unsignedpayloads. Sign each locally and post the signatures toPOST /orders/{id}/cancel/execute.
Only cancellable orders (CeFi pending/active, DeFi active) can be
canceled; others return 400.
Request
Responses
- 200
- 202
- 400
- 401
- 404
- 500
- 503
Resting DeFi order; unsigned cancel payloads to sign and execute
CeFi cancel accepted; poll order status for the terminal state
Bad request
Unauthorized
Not found
Internal server error
Service unavailable