POST
Preview an order

Authorizations

Authorization
string
header
required

The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field. When invitation-only access is enabled, private operations require the account's sign-in email to be invited. Sign-in can complete without an invitation, but private HTTP, MCP and FIX operations refuse with access_not_allowlisted (HTTP 403): "Private access is limited to invited accounts. Contact support to request access." Public market data remains available. Invitation changes apply to the next private operation, including existing FIX sessions. Do not retry until support confirms access.

Body

application/json
accountId
string
required
Minimum string length: 1
marketId
string
required
Minimum string length: 1
side
enum<string>
required
Available options:
buy,
sell
orderType
string
required
Allowed value: "market"
leverageX
integer
Required range: x >= 1
reduceOnly
boolean
quantityAtoms
string
Pattern: ^[1-9][0-9]*$
notionalAtoms
string
Pattern: ^[1-9][0-9]*$

Response

Success

version
string
required
Allowed value: "external-order-preview/v1"
accountId
string
required
Minimum string length: 1
marketId
string
required
Minimum string length: 1
side
enum<string>
required
Available options:
buy,
sell
orderType
enum<string>
required
Available options:
limit,
market
quantityAtoms
string
required
Pattern: ^[1-9][0-9]*$
quantity
string
required
Pattern: ^-?[0-9]+\.[0-9]+$
notionalAtoms
string
required
Pattern: ^[1-9][0-9]*$
notional
string
required
Pattern: ^-?[0-9]+\.[0-9]+$
estimatedEntryPriceAtoms
string
required
Pattern: ^[1-9][0-9]*$
estimatedEntryPrice
string
required
Pattern: ^-?[0-9]+\.[0-9]+$
estimatedSlippageBps
integer
required
Required range: x >= 0
wouldExceedMaxSlippage
boolean
required
requiredMarginAtoms
string
required
Pattern: ^[0-9]+$
requiredMargin
string
required
Pattern: ^-?[0-9]+\.[0-9]+$
estimatedFeeAtoms
string
required
Pattern: ^[0-9]+$
estimatedFee
string
required
Pattern: ^-?[0-9]+\.[0-9]+$
feeRole
enum<string>
required
Available options:
maker,
taker
estimatedLiquidationPriceAtoms
string
required
Pattern: ^[0-9]+$
estimatedLiquidationPrice
string
required
Pattern: ^-?[0-9]+\.[0-9]+$
maintenanceMarginBps
integer
required
Required range: x >= 0
availableForOrdersAtoms
string
required
Pattern: ^[0-9]+$
availableForOrders
string
required
Pattern: ^-?[0-9]+\.[0-9]+$
sufficient
boolean
required
asOf
object
required