Skip to main content
POST
Opens a request for quote (RFQ). The requester specifies a token pair, a side, and a base amount, and registered market makers respond with executable quotes. RFQs are short-lived: they expire after expiryMs (default applies if omitted), after which no further quotes or acceptances are accepted. Use List Quotes to retrieve the quotes received, then Accept Quote to execute against one.

Authentication

Requires an instance API key with the trading service enabled.

Idempotency

This endpoint accepts an optional Idempotency-Key header. Reusing a key with the same body returns the original RFQ; reusing it with a different body returns IDEMPOTENCY_MISMATCH.

Request Body

requesterAddress
string
required
EVM address of the requesting party. Must match 0x[a-fA-F0-9]{40}.
baseToken
string
required
EVM address of the base token (the asset being bought or sold). Must match 0x[a-fA-F0-9]{40}.
quoteToken
string
required
EVM address of the quote token (the currency used for pricing). Must match 0x[a-fA-F0-9]{40}.
custodyContract
string
required
EVM address of the custody contract that will escrow and settle the trade. Must match 0x[a-fA-F0-9]{40}.
side
string
required
The requester’s side. One of BUY or SELL.
baseAmount
string
required
Amount of the base token to trade, in base units (wei). Numeric string.
expiryMs
integer
Lifetime of the RFQ in milliseconds. 5000-60000. If omitted, the instance default applies.

Error Codes