preview_option_order
Check an option order in dry-run mode to validate pricing and terms, then get a one-time confirm token to pass with the identical order for actual placement.
Instructions
Preview an option order WITHOUT sending it (dry_run=True). Always call this first.
Args: option_symbol: OCC format symbol (e.g. 'AAPL250620C00150000'). order_type: buy_to_open | sell_to_close | sell_to_open | buy_to_close ('buy' = buy_to_open, 'sell' = sell_to_open; to exit a long option you MUST use sell_to_close, otherwise Firstrade treats it as opening a short and rejects with ref 1103). contracts: Number of contracts. price_type: limit | market | stop | stop_limit duration: day | day_ext | gt90 price: Limit price per contract (required for limit orders). stop_price: Stop trigger price (required for stop/stop_limit orders).
Returns JSON with order preview confirmation data, plus "confirm_token": pass that token unchanged to place_option_order (with the identical order arguments) to actually send it. The token expires in 10 minutes and works once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | ||
| duration | No | day | |
| contracts | Yes | ||
| order_type | Yes | ||
| price_type | No | limit | |
| stop_price | No | ||
| option_symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |