cancel_order
Cancel trading orders on Hyperliquid DEX using order ID or client order ID to manage positions and execute portfolio adjustments.
Instructions
Cancel a specific order by order ID or client order ID
Input Schema
Name | Required | Description | Default |
---|---|---|---|
assetIndex | Yes | Asset index for the coin | |
clientOrderId | No | Client order ID to cancel (use either orderId or clientOrderId) | |
orderId | No | Order ID to cancel (use either orderId or clientOrderId) |
Input Schema (JSON Schema)
{
"properties": {
"assetIndex": {
"description": "Asset index for the coin",
"type": "number"
},
"clientOrderId": {
"description": "Client order ID to cancel (use either orderId or clientOrderId)",
"type": "string"
},
"orderId": {
"description": "Order ID to cancel (use either orderId or clientOrderId)",
"type": "number"
}
},
"required": [
"assetIndex"
],
"type": "object"
}