Cancel an open perpetual order on Hyperliquid.
cURL
curl --request DELETE \ --url https://api.example.com/v1/perps/hyperliquid/orders \ --header 'Content-Type: application/json' \ --data ' { "symbol": "<string>", "orderId": "<string>", "wallet": "<string>", "signature": "<string>", "nonce": 123 } '
POST /exchange
cancel
curl -X DELETE -H "X-API-Key: $API_KEY" \ -H "Content-Type: application/json" \ https://api.perps.studio/v1/perps/hyperliquid/orders \ -d '{ "symbol": "ETH", "orderId": "9876543210", "wallet": "0x1234...", "signature": "0xabcdef...", "nonce": 1712000000000 }'
{ "orderId": "9876543210", "status": "canceled" }
SIGNATURE_ERROR
ORDER_NOT_FOUND