Skip to main content
POST
private/replace_quote

Authorizations

X-DeriveWallet
string
header
required

The wallet the request acts for.

X-DeriveTimestamp
string
header
required

The current time in milliseconds, as a decimal string.

X-DeriveSignature
string
header
required

EIP-191 signature of the timestamp, by the wallet or one of its session keys.

Body

application/json
direction
enum<string>
required
Available options:
buy,
sell
legs
object[]
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

nonce
string
required
rfq_id
string<uuid>
required

UUID v4 string

signature
string
required
signature_expiry_sec
integer<int64>
required
signer
string
required

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

Required string length: 42
Pattern: ^0x[0-9a-fA-F]{40}$
subaccount_id
integer<uint64>
required
Required range: x >= 0
client
string
default:""
extra_fee
string<decimal>
default:0

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
default:""
mmp
boolean
default:false
nonce_to_cancel
string | null
quote_id_to_cancel
string<uuid> | null

Optional UUID v4 string

referral_code
string
default:""

Response

Success

cancelled_quote
object
required
create_quote_error
object | null
quote
object | null