Build an unsigned order
build_orderFree. Returns a ready-to-sign Hyperliquid order for your own wallet or API wallet: entry (limit-first post-only at the best price, with a market fallback, or market), optional protective stop, and leverage action, all carrying AgentZ's 5 bps builder code. Also checks whether the wallet has approved the builder fee. AgentZ never holds your keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| market | Yes | Hyperliquid market, e.g. BTC, ETH or xyz:TSLA. | |
| wallet | No | Optional. Your wallet, to check builder-fee approval. | |
| leverage | No | Leverage for the leverage action, default 2. | |
| size_usd | Yes | Order size in USD notional (minimum 10). | |
| stop_pct | No | Optional protective stop distance in percent, e.g. 4. | |
| order_type | No | Default limit_first. | |
| reduce_only | No | True to only reduce an existing position. |