Preview order
preview_orderValidate an order and generate a preview_id for confirmation before placement; no order is placed, and previews expire after 60 seconds.
Instructions
Check an order and get a preview to read back to the user. Does not place anything. Returns a preview_id that place_order needs. Previews expire after 60 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | BUY or SELL. Selling more than you hold is not allowed. | |
| symbol | Yes | NSE symbol, for example RELIANCE. | |
| quantity | Yes | Number of shares, 1 to 10000. | |
| order_type | Yes | MARKET fills now at the last price. LIMIT waits for the price to reach limit_price. | |
| limit_price | No | Required for LIMIT orders. Must be within 20% of the last price. Rounded to the 0.05 tick. |