Skip to main content

Get the best quote

Retrieve the best available quote for a source token, destination token, and amount. The response contains the pricing details, limits, and metadata required to create an intent. Quotes are time-limited and must be used before they expire.

Request

Response

Quote expiry

  • expiry is a Unix timestamp in milliseconds.
  • After this timestamp the quote is no longer valid and must be refreshed.
  • Create the intent before expiry to guarantee pricing.

Intermediate token routing

If the user swaps a volatile token, the system may route the swap through a highly liquid intermediate token, typically USDC, to improve execution reliability and manage price volatility. All fields prefixed with intermediate_ describe this routing and the token used.

Affiliate fees

Specify affiliate fees in the quote request. affiliate_fees is a map that may contain multiple entries, where each key is a sub-affiliate ID. This lets affiliates manage multiple sub-affiliates and set a different fee rate for each. Request example
fee_bps: "50" is a 0.5% fee. Response example
The response includes the estimated fee, so affiliates can preview charges before execution. Affiliates with front-end integrations can configure default fee settings that apply automatically to every swap. A configurable flag controls whether these defaults can be overridden per swap.

Example