RFQ

private/replace_quote

Changed on

Maker-side call that atomically cancels an existing quote and submits a new signed quote for the same RFQ in one operation. You provide the new priced legs, direction, max fee, and EIP-712 signature, plus the quote to cancel (by quote_id or nonce_to_cancel). Returns the cancellation result together with the newly created quote. Requires trade scope for every instrument quoted.

post/private/replace_quote

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    API key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature

Request body

ReplaceQuoteRequest required
client, string
direction, 'buy' | 'sell' required
extra_fee, string decimal

Non-negative decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

label, string
legs, PricedLegParamsAndResponse[] required
max_fee, string decimal required

Non-negative decimal string of the human value (e.g. "1.5"), up to 12 fractional digits; a string or JSON number is accepted

mmp, boolean
nonce, string required
nonce_to_cancel, string nullable
quote_id_to_cancel, string uuid nullable

Optional UUID v4 string

referral_code, string
rfq_id, string uuid required

UUID v4 string

signature, string required
signature_expiry_sec, integer required
signer, string required

20-byte Ethereum address as a 0x-prefixed lowercase hex string.

subaccount_id, integer required

Response

Success

QuoteReplaceResponse required
cancelled_quote, Quote required
create_quote_error, RPCError nullable
quote, Quote nullable

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status