HomeDocumentationAPI Reference
Log In
API Reference

Replace Quote

Cancel an existing quote with nonce or quote_id and create new quote with different quote_id in a single RPC call.

If the cancel fails, the new quote will not be created.
If the cancel succeeds but the new quote fails, the old quote will still be cancelled. Required minimum session key permission level is admin

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

Optional client that sent the quote

string
enum
required

Quote direction, buy means trading each leg at its direction, sell means trading each leg in the opposite direction.

Allowed:
string

Optional user-defined label for the quote

legs
array of objects
required

Quote legs

legs*
string
required

Max fee ($ for the full trade). Request will be rejected if the supplied max fee is below the estimated fee for this trade.

boolean
Defaults to false

Whether the quote is tagged for market maker protections (default false)

integer
required

Unique nonce defined as a concatenated UTC timestamp in ms and random number up to 6 digits (e.g. 1695836058725001, where 001 is the random number)

integer | null
Defaults to null

Cancel quote by nonce (choose either quote_id or nonce).

uuid | null
Defaults to null

Cancel quote by quote_id (choose either quote_id or nonce).

uuid
required

RFQ ID the quote is for

string
required

Ethereum signature of the quote

integer
required

Unix timestamp in seconds. Expiry MUST be at least 310 seconds from now. Once time till signature expiry reaches 300 seconds, the quote will be considered expired. This buffer is meant to ensure the trade can settle on chain in case of a blockchain congestion.

string
required

Owner wallet address or registered session key that signed the quote

integer
required

Subaccount ID

Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json