Skip to main content

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 Accepted with no payloads. Poll GET /orders/{id}/status for the terminal state.
  • DeFi (Hyperliquid) resting orders return 200 OK with unsigned payloads. Sign each locally and post the signatures to POST /orders/{id}/cancel/execute.

Only cancellable orders (CeFi pending/active, DeFi active) can be canceled; others return 400.

Request

Responses

Resting DeFi order; unsigned cancel payloads to sign and execute