Skip to main content

Overview

A quote is a derived view of pricing based on current on-chain market state. Quotes are ephemeral:
  • GET /v1/quote does not create or persist a quote entity.
  • Responses include asOf provenance and an expiresAt timestamp.

Trade types

  • **EXACT_IN**: you specify the exact input amount; you receive the expected output amount.
  • **EXACT_OUT**: you specify the exact output amount; you receive the required input amount.
Amounts are expressed as strings in smallest units (for example, USDC with 6 decimals).

Reading the response

Key fields in the Quote response:
  • asOf: provenance for the derived response (block reference and timestamp when available)
  • expiresAt: how long the quote should be considered valid for planning
  • amountIn / amountOut: smallest units as strings
  • fees: breakdown (when available)
  • route: routing details (implementation-defined)

Example

Next steps

  • Generate swap instructions: Swap