Preview an order
Runs an order without placing it. The body is the same as for placing an order;
client_order_id is optional and ignored. Nothing is recorded or sent.
The preview checks the request, your key’s limits and your balance, sizes the order as it would be sized now, and estimates the fill from the current order book. It returns the position and balance you would have afterwards.
A preview answers 200 whenever the body is a JSON object. When the order would be
refused, valid is false and errors lists every reason at once, with the same error
objects placing it would return.
Authorizations
An API key from the account page, sent as Authorization: Bearer tapi_….
Body
Response
The preview.
"order_preview"Whether placing this order now would be accepted.
The order as it would be sized now.
The expected fill, from the current order book.
Your position if the order fills as estimated. null if it would close the position.
Every reason the order would be refused, when valid is false.