Skip to main content
POST
Preview an order

Authorizations

Authorization
string
header
required

An API key from the account page, sent as Authorization: Bearer tapi_….

Body

application/json

The same body as placing an order. client_order_id is optional and ignored.

market
any
required
side
any
required
type
any
required
value
any
required
client_order_id
any
price
any
reduce_only
any
metadata
any

Response

The preview.

object
string
required
Allowed value: "order_preview"
valid
boolean
required

Whether placing this order now would be accepted.

order
object | null
required

The order as it would be sized now.

estimate
object | null
required

The expected fill, from the current order book.

position_after
object | null
required

Your position if the order fills as estimated. null if it would close the position.

account_after
object | null
required
notes
object[]
required
errors
object[]
required

Every reason the order would be refused, when valid is false.