Simulates an order submission to calculate estimated costs, fees, commissions, and buying power impact before actual execution. Returns detailed breakdown of order economics without committing to the trade.
Use Case: Review total order costs and verify buying power sufficiency before placing trades to avoid rejections and unexpected fees.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Account identifier
1 - 50"TEST-ACCOUNT-001"
Trading symbol
1 - 20"AAPL"
Order side
BUY, SELL, SELL_SHORT, BUY_TO_COVER "BUY"
Order type
MARKET, LIMIT, STOP, STOP_LIMIT "LIMIT"
Order quantity (decimal string)
"10"
Time in force
DAY, GTC, IOC, FOK, EXTENDED_HOURS, AT_THE_OPENING, AT_THE_CLOSE "DAY"
Optional client identifier
50"CLIENT-001"
Limit price (required for LIMIT and STOP_LIMIT orders)
"150.00"
Stop price (required for STOP and STOP_LIMIT orders)
"145.00"
Currency code (3 characters)
3"USD"
Option legs array. Order type is derived from this:
4Order preview calculated successfully
Response schema for order preview (PreviewOrdResponse)
Estimated total cost of the order
"1500.00"
Estimated margin for the order
"0.00"
Commission fees
"0.00"
Impact on buying power
"1500.01"
Regulatory and exchange fees
"0.01"
Option-specific fees
"0.70"
Option requirement for the order
"0.00"
Option premium cost
"550.00"
Number of day trades this order would trigger
0
Warning rule ID if applicable
Warning messages if applicable
Error messages if order would be rejected