Place order (agent wallet)
hl_place_orderPlace a limit or market perp order on Hyperliquid via your agent wallet, attaching builder code for fee collection. Preview with dry-run; submit by setting confirm=true and dryRun=false.
Instructions
Place a limit or market perp order through YOUR local agent wallet, with the HyperSignal builder code attached. Dry-run by default (previews the exact signed action without sending). Set confirm=true AND dryRun=false to submit. ⚠️ Places a REAL order via your agent wallet when confirm=true and dry-run is off. Trades are risky and irreversible; this is not investment advice. Test on testnet first. The customer builder code is attached to earn a small builder fee.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tif | No | Time-in-force for limit orders. | Gtc |
| coin | Yes | Perp coin symbol, e.g. 'BTC'. | |
| side | Yes | ||
| size | Yes | Order size in base units. | |
| dryRun | No | Keep true to preview only; set false (with confirm) to submit. | |
| confirm | No | Must be true to submit. False => dry-run preview. | |
| limitPx | No | Limit price; omit for a market (IOC) order. | |
| reduceOnly | No | ||
| slippageBps | No | Slippage bound for market orders (bps). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| action | Yes | ||
| reason | No | ||
| response | No | ||
| agentAddress | No | ||
| builderAttached | Yes |