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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"side": "<side>",
"quantity": "<quantity>",
"order_type": "<order_type>"
},
"name": "preview_order"
}
}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. |