safe_perp_order_hyperliquid
Evaluate live Hyperliquid L1 perpetual market risk (mark price, annualized funding rate, estimated margin, and liquidation distance buffer) and construct an unsigned perpetual order payload carrying the official Dovafy Builder Code (0.03% disclosed fee). Automatically checks maxBuilderFee approval status and returns a one-time gasless EIP-712 authorization URL when needed. Zero custody; never requests private keys.
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": {
"coin": "<coin>",
"isBuy": "<isBuy>",
"sizeUsd": "<sizeUsd>",
"userAddress": "<userAddress>"
},
"name": "safe_perp_order_hyperliquid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Hyperliquid perpetual market ticker symbol (e.g. BTC, ETH, SOL). | |
| isBuy | Yes | Order direction: true to open/add a long (buy), false to open/add a short (sell). | |
| sizeUsd | Yes | Target notional position size in USD (positive finite number). | |
| leverage | No | Target leverage multiplier between 1 and 50 (default 3). | |
| orderType | No | Execution style: "market" (IOC with slippage guard, default) or "limit" (GTC at limitPrice). | |
| limitPrice | No | Limit order price in USD. Required when orderType is "limit". | |
| reduceOnly | No | When true, order can only reduce an existing open position without increasing exposure. | |
| slippageBps | No | Market order price protection slippage in basis points (1 to 500; default 50 = 0.50%). | |
| userAddress | Yes | User EVM 0x PUBLIC wallet address on Hyperliquid. Never pass a private key. | |
| acknowledgeHighRisk | No | Set true to proceed past tight liquidation buffer or elevated leverage risk warnings. |