RFQ

private/replace_quote

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
  • URL: https://api.derive.xyz/v3/private/replace_quote
  • Auth: none declared

Request body

clientstring
direction'buy' | 'sell' required
extra_feestring 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

labelstring
max_feestring 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

mmpboolean
noncestring required
nonce_to_cancelstring nullable
quote_id_to_cancelstring uuid nullable

Optional UUID v4 string

referral_codestring
rfq_idstring uuid required

UUID v4 string

signaturestring required
signature_expiry_secinteger required
signerstring required

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

subaccount_idinteger required

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.