Skip to main content
Glama

Hyperliquid MCP Server

by t3rmed

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

NameRequiredDescriptionDefault
assetIndexYesAsset index for the coin
clientOrderIdNoClient order ID to cancel (use either orderId or clientOrderId)
orderIdNoOrder 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/t3rmed/hyperliquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server