Overview
A quote is a derived view of pricing based on current on-chain market state. Quotes are ephemeral:GET /v1/quotedoes not create or persist a quote entity.- Responses include
asOfprovenance and anexpiresAttimestamp.
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.
Reading the response
Key fields in theQuote response:
asOf: provenance for the derived response (block reference and timestamp when available)expiresAt: how long the quote should be considered valid for planningamountIn/amountOut: smallest units as stringsfees: breakdown (when available)route: routing details (implementation-defined)
Example
Next steps
- Generate swap instructions: Swap