Skip to content

Get Remove Liquidity Quote

GET
/liquidity/quote/remove

Get a quote for removing liquidity from a pool.

Authorizations

Parameters

Query Parameters

poolId
required
string format: uuid

The ID of the pool to remove liquidity from

lpTokenAmount
required
string

Amount of LP tokens to burn

walletId
required
string format: uuid

The wallet ID to calculate remaining pool share

Responses

200

Remove 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
expectedToken0

Amount of token0 you will receive

string
expectedToken1

Amount of token1 you will receive

string
priceImpact

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

string
remainingPoolShare

Your ownership percentage of the pool after removal

string

400

Bad Request

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