Liquidity

Get user liquidity balance

get

Retrieves comprehensive liquidity balance and all positions for a specified wallet.

For each position returns: NFT mint address, pool ID and configuration, liquidity amount, token amounts, price range (ticks), fees earned (unclaimed), rewards, and position status (in/out of range).

Aggregated data: total value across all positions (USD if available), total fees earned, number of active positions, positions grouped by pool.

Use cases: portfolio overview and analytics, calculate total liquidity provided, track earnings from all positions, monitor position health across multiple pools.

Path parameters
user_walletstringRequiredExample: EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMt
Responses
200

Successful Response

application/json
get
/api/liquidity_balance/{user_wallet}/

Convert liquidity to token amounts

post

Convert liquidity to token amounts

Calculates token amounts for a given liquidity value within specified tick range.

Body
amm_config_indexinteger · int32Required

AMM configuration index

Example: 3
liquidityintegerRequired

Liquidity amount

Example: 25000
mint0stringRequired

First pool token address

Example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
mint1stringRequired

Second pool token address

Example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
tick_lowerinteger · int32Required

Lower tick

Example: -100
tick_upperinteger · int32Required

Upper tick

Example: 100
Responses
200

Liquidity to amounts

application/json
post
/api/liquidity_to_amounts/

Convert liquidity to token amounts for multiple positions

post

Convert liquidity to token amounts for multiple positions

Calculates token amounts for multiple liquidity positions in batch.

Body
Responses
200

Liquidity to amounts multiple

application/json
post
/api/liquidity_to_amounts_multiple/

Last updated