Skip to main content
POST
Estimate the cost and margin impact of an order

Body

application/json

Parameters for public/order_quote and private/order_quote.

amount
string<decimal>
required

Order amount in units of the base, as a decimal string (e.g. "1.5") or a JSON number.

direction
enum<string>
required

Order direction

Available options:
buy,
sell
instrument_name
string
required

Instrument name

limit_price
string<decimal>
required

Limit price in quote currency, as a decimal string or a JSON number.

max_fee
string<decimal>
required

Max fee per unit of volume in quote currency, as a decimal string or a JSON number.

nonce
string
required

Nonce.

signature
string
required

Ethereum signature of the order.

signature_expiry_sec
integer<int64>
required

Signature expiry (unix seconds).

signer
string
required

Owner wallet or session key that signed the order.

subaccount_id
integer<int64>
required

Subaccount ID

client
string
default:""
extra_fee
string<decimal> | null

Optional extra fee per unit of volume, as a decimal string or JSON number. Defaults to zero.

is_atomic_signing
boolean
default:false
label
string
default:""
mmp
boolean
default:false
order_type
enum<string>
default:limit
Available options:
limit,
market
reduce_only
boolean
default:false
referral_code
string
default:""
reject_post_only
boolean
default:true
reject_timestamp
integer<int64>
default:9223372036854776000
time_in_force
enum<string>
default:gtc
Available options:
gtc,
post_only,
fok,
ioc
trigger_price
string<decimal> | null

Trigger price as a decimal string or JSON number; omit for non-trigger orders.

trigger_price_type
enum<string> | null
Available options:
mark,
index
trigger_type
enum<string> | null
Available options:
stoploss,
takeprofit

Response

Success

Estimated fill price, fees, and resulting margin for a proposed order — a non-binding dry-run. All price, fee, and margin fields are decimal strings.

estimated_fee
string
required
estimated_fill_amount
string
required
estimated_fill_price
string
required
estimated_order_status
enum<string>
required
Available options:
open,
filled,
rejected,
cancelled,
expired,
untriggered,
algo_active
estimated_realized_pnl
string
required
estimated_realized_pnl_excl_fees
string
required
is_valid
boolean
required
post_initial_margin
string
required
pre_initial_margin
string
required
suggested_max_fee
string
required
invalid_reason
string | null
max_amount
string | null
post_liquidation_price
string | null