Preview Option Order
/accounts/{accountId}/previewOptionOrderPreview an option order before submission. Returns a confirmId and structured confirmation details. Use this to validate the order, check for sufficient buying power, calculate fees and show the validation results to the human. The human can then decline or proceed with order placement, in this case pass confirmId to Place Option Order to submit. Option symbol is expected in the following format: [Underlying symbol][Expiration date YYYYMMDD][C or P][Strike price]
Path Parameters
The account identifier.
Body Parameters
Option contract symbol in the following format: Example: AAPL20260116C150 (AAPL, expiring 2026-01-16, call, strike $150).
Order direction.
Whether the order opens a new position or closes an existing one.
Order type.
Asset class. Use option.
Number of contracts.
Order time-in-force.
Limit price. Required for limit order type.
Stop trigger price. Required for stop order type.
Request Example
{
"contractId": "AAPL20260116C150",
"side": "buy",
"openClose": "open",
"type": "limit",
"qty": "1",
"limitPrice": "5.00",
"category": "option",
"durationType": "day"
}Response
Preview generated successfully.
Status indicator. ok on success.
Error message if the preview could not be generated.
Confirmation token to pass back as confirmId when calling Place Option Order.
Informational sections to display to the user before order submission.
Section heading.
Warning messages for the section.
Error messages for the section.
Response
Unauthorized — missing or invalid authentication.
Error code string, e.g. invalid_grant.
Human-readable error message.
Response
Error response.
Error code string, e.g. invalid_grant.
Human-readable error message.
Response Example
{
"s": "ok",
"d": {
"confirmId": "0000001",
"sections": [
{
"header": "Estimated",
"rows": [
{
"label": "Estimated Cost",
"value": "$500.00"
}
],
"warnings": [
"A warning is some message that should be shown to the user, but not necessarily preventing from executing the order."
],
"errors": [
"The order can not be executed right now because of errors specified here."
]
}
]
}
}