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.
Request schema for order preview (tradesvc)
Account identifier
"TEST-ACCOUNT-001"
Trading symbol (for options, use full OCC symbol)
"AAPL"
Trade action
buy, sell "buy"
Order type
MARKET, LIMIT, STOPMARKET, STOPLIMIT "LIMIT"
Order quantity
10
Limit price (float64 as string)
"150.00"
Stop price (float64 as string)
"145.00"
Order routing
"smart"
Time in force
DAY, GTC, OPG, IOC, FOK, GTD, EXT "DAY"
Option legs (required for option/multi-leg orders)
Order preview calculated successfully
Response schema for order preview
Total cost of the order (decimal string)
"1500.00"
Commission fees (decimal string)
"0.00"
Regulatory and exchange fees (decimal string)
"0.01"
Impact on buying power (decimal string)
"1500.01"
Margin requirement for the order (decimal string)
"0.00"
Option-specific fees (decimal string)
"0.70"
Option premium cost (decimal string)
"550.00"
Option-specific requirement (decimal string)
"0.00"
Number of day trades this order would trigger
0
Reason if order would be rejected
Warning description if applicable
Warning rule ID if applicable