preview_order
Validate a proposed order against risk limits without sending it. Receive live quote, estimated notional, risk decision, and confirmation token if approved.
Instructions
STEP 1 of 2 for trading. Validate a proposed order against the risk limits
WITHOUT sending it. Returns the live quote, estimated notional, the risk
decision (approved + reasons), and -- only if approved AND trading is enabled
-- a one-time confirmation_token. Show the user the risk decision and cost,
then call place_order with that token.
action: BUY or SELL. order_type: MKT or LMT (limit_price required for LMT).
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>",
"action": "<action>",
"quantity": "<quantity>"
},
"name": "preview_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| symbol | Yes | ||
| quantity | Yes | ||
| order_type | No | MKT | |
| limit_price | No |