API Reference

Send Quote Debug

Method Name

public/send_quote_debug

Sends a quote in response to an RFQ request.
The legs supplied in the parameters must exactly match those in the RFQ.

Parameters

direction string required
Quote direction, buy means trading each leg at its direction, sell means trading each leg in the opposite direction.
enum buy sell
max_fee 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.
nonce 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)
rfq_id string required
RFQ ID the quote is for
signature string required
Ethereum signature of the quote
signature_expiry_sec 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.
signer string required
Owner wallet address or registered session key that signed the quote
subaccount_id integer required
Subaccount ID
legs array of objects required
Quote legs
legs[].amount string required
Amount in units of the base
legs[].direction string required
Leg direction
enum buy sell
legs[].instrument_name string required
Instrument name
legs[].price string required
Leg price
label string
Optional user-defined label for the quote
mmp boolean
Whether the quote is tagged for market maker protections (default false)

Response

id string or integer required
result object required
result.action_hash string required
Keccak hashed action data
result.encoded_data string required
ABI encoded deposit data
result.encoded_data_hashed string required
Keccak hashed encoded_data
result.typed_data_hash string required
EIP 712 typed data hash

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}