prepare_perp_order
Prepare an unsigned Hyperliquid BTC/ETH/HYPE perpetual IOC order envelope for local wallet signing. Use it when an agent has decided on market, side, size and limit price and needs reviewed lot/tick, impact and mark-oracle checks. Do not use it to create a nonce, sign, or submit an order. Returns the short-expiry unsigned exchange envelope and the validated bounds when every gate passes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| size | Yes | Exact base size decimal string | |
| venue | Yes | Only reviewed perp venue | |
| market | Yes | ||
| builder_fee | No | ||
| limit_price | Yes | Exact IOC limit price decimal string | |
| reduce_only | Yes | ||
| client_order_id | Yes | ||
| max_notional_usd | Yes | ||
| require_full_fill | No | ||
| max_price_impact_bps | Yes | ||
| expires_after_seconds | No | ||
| max_mark_oracle_deviation_bps | Yes |