curl --request POST \
--url https://api.hyperliquid.xyz/exchange \
--header 'Content-Type: application/json' \
--data '{
"action": {
"type": "cancelByCloid",
"cancels": [
{
"asset": 0,
"cloid": "0x1234567890abcdef1234567890abcdef"
}
]
},
"nonce": 1705234567890,
"signature": {
"r": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"s": "0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321",
"v": 27
},
"vaultAddress": null
}'
{
"status": "<string>",
"response": {
"type": "<string>",
"data": {
"statuses": [
"<any>"
]
}
}
}
curl --request POST \
--url https://api.hyperliquid.xyz/exchange \
--header 'Content-Type: application/json' \
--data '{
"action": {
"type": "cancelByCloid",
"cancels": [
{
"asset": 0,
"cloid": "0x1234567890abcdef1234567890abcdef"
}
]
},
"nonce": 1705234567890,
"signature": {
"r": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"s": "0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321",
"v": 27
},
"vaultAddress": null
}'
{
"status": "<string>",
"response": {
"type": "<string>",
"data": {
"statuses": [
"<any>"
]
}
}
}
action
(object, required) — The cancel action object containing:
type
(string) — Must be "cancelByCloid"
cancels
(array) — Array of cancel objects with:
asset
(number) — Asset indexcloid
(string) — Client order ID (128-bit hex string, e.g., 0x1234567890abcdef1234567890abcdef
)nonce
(number, required) — Current timestamp in milliseconds (must be recent)
signature
(object, required) — EIP-712 signature of the action
vaultAddress
(string, optional) — Address when trading on behalf of a vault or subaccountexpiresAfter
(number, optional) — Timestamp in milliseconds after which the request is rejectedstatus
— "ok"
if request processedresponse
— Contains cancellation details:
type
— "cancelByCloid"
data.statuses
— Array of status results for each cancellation attemptcurl -X POST https://api.hyperliquid.xyz/exchange \
-H "Content-Type: application/json" \
-d '{
"action": {
"type": "cancelByCloid",
"cancels": [{
"asset": 0,
"cloid": "0x1234567890abcdef1234567890abcdef"
}]
},
"nonce": 1234567890123,
"signature": {...}
}'
0x1234567890abcdef1234567890abcdef
Cancellation result
The response is of type object
.