private/order_quote
Changed onDry-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.
Request
- Base URLhttps://api.derive.xyz/v3
- AuthAPI key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature
Request 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
Optional builder fee for the whole order, in USDC, as a decimal string or JSON number. Each fill pays its pro-rata share. Defaults to zero.
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
Trigger price as a decimal string or JSON number; omit for non-trigger orders.
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.
Changes
- info
the endpoint scheme security
DeriveWallet AND DeriveTimestamp AND DeriveSignaturewas added to the API - info
added the media type
application/jsonfor the response with the status
- info