Preview Order
Previewing an order provides insight into the validation and cost an order might have on an account. We recommend that most developers and platforms leverage previews before placing orders.
When previewing an order, all order validation rules are run, including buying power checks. All applicable fees and commissions are delivered in the response. Submit the order with all necessary parameters and include the additional parameter of preview=true
Bash
curl --request POST \
--url https://api.tradier.com/v1/accounts/6YA000001/orders \
--header 'accept: application/json' \
--header 'authorization: Bearer <TOKEN>' \
--header 'content-type: application/x-www-form-urlencoded' \
--data-urlencode type=market \
--data-urlencode duration=day \
--data-urlencode preview=true \
--data-urlencode class=equity \
--data-urlencode symbol=AAPL \
--data-urlencode quantity=1 \
--data-urlencode side=buy
Response
Plain text
{
"order": {
"status": "ok",
"commission": 0,
"cost": 332.79,
"fees": 0,
"symbol": "AAPL",
"quantity": 1,
"side": "buy",
"type": "market",
"duration": "day",
"result": true,
"order_cost": 332.79,
"margin_change": 166.395,
"request_date": "2026-10-02T13:45:06.213",
"extended_hours": false,
"class": "equity",
"strategy": "equity",
"day_trades": 0
}
}Was this section helpful?
On this page
- Preview Order