For the complete documentation index, see llms.txt. This page is also available as Markdown.

Prepare a perp cancel

Prepare a perp cancel

post

Build an unsigned cancel for one resting order.

Same prepare → sign → execute flow as /api/v1/perp/order: sign the returned eip712 payload and submit it to /api/v1/perp/execute. This call cancels nothing on its own.

order_id is the exchange's order id (oid) — take it from /api/v1/perp/orders, or from the execute response that placed the order. Cancelling an order that has already filled or been cancelled is rejected with a 422.

Authorizations
apikeystringRequired

API key for authentication

Body

Prepare a cancel for an open order.

wallet_addressstringRequired

Wallet address on Hyperliquid

Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
coinstringRequired

Asset symbol

Example: BTC
order_idintegerRequired

Exchange order id (oid) of the order to cancel, as returned by /api/v1/perp/orders or by the execute call that placed it

Example: 123456789
Responses
200

Successful Response

application/json
post/api/v1/perp/cancel

Last updated

Was this helpful?