preview_order
Use this BEFORE place_order whenever the user wants to open a position: it validates and sizes the order (fresh est. entry, size after rounding, est. liquidation, TP/SL sanity, MCP caps) WITHOUT placing anything, and shows a proposal card the user can confirm from. Read-only and always safe to call. If the user confirms, call place_order with the same arguments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Position direction | |
| symbol | Yes | Hyperliquid perp coin symbol, e.g. BTC, ETH, SOL (not BTCUSDT) | |
| leverage | No | Leverage multiplier | |
| stop_loss | No | Stop-loss trigger price | |
| margin_usd | Yes | USDC margin to commit. Position notional = margin × leverage | |
| order_type | No | Execution type | market |
| limit_price | No | Required when order_type is limit | |
| margin_mode | No | Margin mode | cross |
| take_profit | No | Take-profit trigger price |