POST
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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