trade_preview
Preview a trade without executing to see estimated fill price, fees, margin impact, and risk checks before confirming execution.
Instructions
Preview a trade WITHOUT executing. Returns estimated fill price, fees, margin impact, and risk checks. ALWAYS call this before trade_execute and show the result to the user for confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange | Yes | Exchange: pacifica, hyperliquid, lighter, or aster | |
| symbol | Yes | Trading symbol (e.g., BTC, ETH, SOL) | |
| side | Yes | Order side | |
| size | Yes | Order size (base currency units, e.g., '0.1' for 0.1 BTC) | |
| orderType | No | Order type | market |
| price | No | Limit price (required for limit orders) |