Prepare a Hyperliquid order
hyperliquid_prepare_orderPrepare a perpetual order on Hyperliquid (market or limit, optional leverage, stop loss, take profit, or close a position). Returns a confirmation link: NOTHING is executed until the user opens the link and confirms it, signing in their own browser. Use it after checking liquidation levels and positioning with the other tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "hyperliquid_prepare_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | ||
| size | No | Or size in coins | |
| close | No | true = close the whole open position in symbol at market | |
| margin | No | ||
| symbol | Yes | e.g. BTC, ETH, SOL, HYPE | |
| leverage | No | ||
| size_usd | No | Position size in USD notional | |
| stop_loss | No | ||
| order_type | No | ||
| limit_price | No | ||
| reduce_only | No | ||
| take_profit | No |