Get a quote for swapping tokens
GET /v2/liquidity/quote/swap
GET
/v2/liquidity/quote/swap
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” poolId
required
string
inputTokenAmount
required
string
inputTokenIsToken0
required
string
Responses
Section titled “ Responses ”Swap quote
object
poolInfo
required
Current pool state and pricing information
object
token0Symbol
required
Token symbol for token0 (e.g., “USDC”)
string
token1Symbol
required
Token symbol for token1 (e.g., “ETH”)
string
token0Reserve
required
Current amount of token0 in the pool
string
token1Reserve
required
Current amount of token1 in the pool
string
token0Price
required
Exchange rate: How much token1 you get for 1 token0
string
token1Price
required
Exchange rate: How much token0 you get for 1 token1
string
expectedAmountOut
required
Amount of output tokens you will receive
string
effectiveRate
required
Effective exchange rate for this swap
string
priceImpact
required
How much this trade will affect the price (in percent)
string
fee
required
Trading fee amount in input token units
string
feeRate
required
Trading fee rate in basis points
string