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
- 403
- 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
Forbidden. On order creation this also covers an asset that is not available to trade from the country the request came from.
Not found
Internal server error
Service unavailable