preview_order
Check an order against account limits before placing it. Validate cash, margin, short, naked-option, and leverage constraints to avoid rejections.
Instructions
Dry-run an order against cash, margin, short, naked-option, and leverage limits.
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": {
"account": "<account>",
"symbol": "<symbol>",
"side": "<side>",
"qty": "<qty>"
},
"name": "preview_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | ||
| side | Yes | ||
| price | No | ||
| symbol | Yes | ||
| account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |