Preview Order
preview_orderPreview single-leg or bracket orders before submission to verify details and avoid errors. Validate order parameters without placing the trade.
Instructions
Preview a single-leg or bracket order without placing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | No | Order legs for bracket/OCA orders. | |
| warnings | No | Human-readable warnings. | |
| orderSpec | Yes | The original order specification. | |
| totalNotional | No | Total worst-case notional across all legs. | |
| estimatedPrice | No | Estimated execution price. | |
| estimatedNotional | No | Estimated notional value in account currency. | |
| estimatedCommission | No | Estimated commission and fees. | |
| estimatedInitialMarginChange | No | Estimated change in initial margin requirement. | |
| estimatedMaintenanceMarginChange | No | Estimated change in maintenance margin requirement. |