Method Name
public/send_quote_debug
public/send_quote_debugSends a quote in response to an RFQ request.
The legs supplied in the parameters must exactly match those in the RFQ.
Parameters
| directionstringrequired Quote direction, buy means trading each leg at its direction, sell means trading each leg in the opposite direction.enum buysell |
| max_feestringrequired Max fee ($ for the full trade). Request will be rejected if the supplied max fee is below the estimated fee for this trade. |
| nonceintegerrequired 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_idstringrequired RFQ ID the quote is for |
| signaturestringrequired Ethereum signature of the quote |
| signature_expiry_secintegerrequired 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. |
| signerstringrequired Owner wallet address or registered session key that signed the quote |
| subaccount_idintegerrequired Subaccount ID |
| legsarray of objectsrequired Quote legs |
| legs[].amountstringrequired Amount in units of the base |
| legs[].directionstringrequired Leg direction enum buysell |
| legs[].instrument_namestringrequired Instrument name |
| legs[].pricestringrequired Leg price |
| clientstring Optional client that sent the quote |
| labelstring Optional user-defined label for the quote |
| mmpboolean Whether the quote is tagged for market maker protections (default false) |
Response
| idstring or integerrequired |
| resultobjectrequired |
| result.action_hashstringrequired Keccak hashed action data |
| result.encoded_datastringrequired ABI encoded deposit data |
| result.encoded_data_hashedstringrequired Keccak hashed encoded_data |
| result.typed_data_hashstringrequired 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}