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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| symbol | Yes | ||
| quantity | Yes | ||
| order_type | No | MKT | |
| limit_price | No |