Skip to content

Get Add Liquidity Quote

GET
/liquidity/quote/add

Get a quote for adding liquidity to a pool.

Authorizations

Parameters

Query Parameters

poolId
required
string format: uuid

The ID of the pool to add liquidity to

token0Amount
string

Amount of token0 to add

token1Amount
string

Amount of token1 to add

Responses

200

Add liquidity quote

object
poolInfo
object
token0Symbol

Token symbol for token0 (e.g., “USDC”)

string
token1Symbol

Token symbol for token1 (e.g., “ETH”)

string
token0Reserve

Current amount of token0 in the pool

string
token1Reserve

Current amount of token1 in the pool

string
token0Price

Exchange rate - How much token1 you get for 1 token0

string
token1Price

Exchange rate - How much token0 you get for 1 token1

string
token0ContractDeploymentId

Contract deployment ID of token0

string
token1ContractDeploymentId

Contract deployment ID of token1

string
contractDeploymentId

Contract deployment ID of the pool

string
expectedLpTokens

Number of LP tokens you will receive

string
requiredToken0

Actual amount of token0 needed for balanced provision

string
requiredToken1

Actual amount of token1 needed for balanced provision

string
priceImpact

How much this trade will affect the price (in percent)

string
poolShare

Your ownership percentage of the pool after adding liquidity

string

400

Bad Request

object
code
integer
400
message
string
Bad Request
details
string
Invalid input parameters