Skip to main content
Glama

Hyperliquid MCP Server

by t3rmed

place_trigger_order

Execute stop-loss or take-profit orders on Hyperliquid DEX by setting trigger prices for automated position management and risk control.

Instructions

Place a trigger order (stop-loss or take-profit) on Hyperliquid

Input Schema

NameRequiredDescriptionDefault
assetIndexYesAsset index for the coin (0 for BTC, 1 for ETH, etc.)
clientOrderIdNoClient order ID (optional)
isBuyYesTrue for buy order, false for sell order
isMarketYesWhether to execute as market order when triggered
reduceOnlyNoWhether this is a reduce-only order (optional, default false)
sizeYesOrder size as string
triggerPriceYesTrigger price as string
triggerTypeYesTrigger type

Input Schema (JSON Schema)

{ "properties": { "assetIndex": { "description": "Asset index for the coin (0 for BTC, 1 for ETH, etc.)", "type": "number" }, "clientOrderId": { "description": "Client order ID (optional)", "type": "string" }, "isBuy": { "description": "True for buy order, false for sell order", "type": "boolean" }, "isMarket": { "description": "Whether to execute as market order when triggered", "type": "boolean" }, "reduceOnly": { "description": "Whether this is a reduce-only order (optional, default false)", "type": "boolean" }, "size": { "description": "Order size as string", "type": "string" }, "triggerPrice": { "description": "Trigger price as string", "type": "string" }, "triggerType": { "description": "Trigger type", "enum": [ "tp", "sl" ], "type": "string" } }, "required": [ "assetIndex", "isBuy", "size", "triggerPrice", "isMarket", "triggerType" ], "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