/defi/v1/swaps/quote
20 credits per API call
Get the single best swap rate across all supported protocols. Compares all protocols and returns the one with the best price: sell orders — highest buyAmount, buy orders — lowest sellAmount. Use this when you just want the best deal without thinking about protocols. For comparing all options, use GET /defi/v1/swaps/quotes instead.
Quotes are cached for up to 15 seconds (less than one Ethereum block).
Each response includes an expiresAt field (Unix timestamp) indicating
when the underlying quote was originally fetched from the protocol.
Always check expiresAt against the current time before displaying or
acting on a quote — if less than ~10 seconds remain, re-query to get a
fresh price.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||