public/order_quote
Changed onPublic dry-run variant of order_quote that estimates fill price, fees, margin impact, projected order status and realized PnL for a prospective order without placing it, returning all values as decimal strings. Unlike private/order_quote it bypasses session scope checks, so it can be used to preview costs without account authentication.
Request
- Base URLhttps://api.derive.xyz/v3
- Authnone declared
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
added the media type
application/jsonfor the response with the status
- info