Estimate the cost and margin impact of an order
Dry-run pricing helper that estimates the outcome of a prospective order without placing it, returning projected fill price and amount, fees, pre/post initial margin, realized PnL, resulting order status and (where relevant) liquidation price and max tradable amount. All monetary values are returned as decimal strings. The private variant requires account-level authentication.
Body
Parameters for public/order_quote and private/order_quote.
Order amount in units of the base, as a decimal string (e.g. "1.5") or a JSON number.
Order direction
buy, sell Instrument name
Limit price in quote currency, as a decimal string or a JSON number.
Max fee per unit of volume in quote currency, as a decimal string or a JSON number.
Nonce.
Ethereum signature of the order.
Signature expiry (unix seconds).
Owner wallet or session key that signed the order.
Subaccount ID
Optional extra fee per unit of volume, as a decimal string or JSON number. Defaults to zero.
limit, market gtc, post_only, fok, ioc Trigger price as a decimal string or JSON number; omit for non-trigger orders.
mark, index 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.
open, filled, rejected, cancelled, expired, untriggered, algo_active Related topics
Estimate order cost and margin without authenticationMigration skill for your coding agentQuickstart