Get User Liquidity
Retrieves detailed liquidity information for a specific token pair held by an account. It returns the pair’s unique address along with the total liquidity and the individual balances for each token in the pair. This data is essential for users monitoring their decentralized liquidity positions and managing their exposure across various protocols.
💡 Compute Unit Value: 60 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/getuserliquidity
- AuthAPI key in header X-API-Key
Query parameters
Address of the first token.
Public address of liquidity provider.
The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.
Address of the second token.
A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.
The token ID for PancakeSwap V3 liquidity position.
Pool address whose liquidity is to be fetched.
Address of the third token.
Address of the forth token.
Bin ID whose liquidity is to be fetched.
LP token that represents a position in a pool.
Comma-separated values of token addresses whose price is to be fetched. Note: 1) Assets should be in lexicographic order. 2) For assets other than XLM (Native token), the token issuer is required.
Pool ID of the token pair.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0x21b8065d10f73EE2e260e5B47D3344d3Ced7596E",
"liquidity": "0",
"tokenA": "0",
"tokenB": "0",
"prices": {
"usd": [
{
"0x66a0f676479cee1d7373f3dc2e2952778bff5bd6": "0.20142069681758892"
},
{
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "3614.520018921655"
}
],
"inr": [
{
"0x66a0f676479cee1d7373f3dc2e2952778bff5bd6": "17.40667167879299"
},
{
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "312364.9368702795"
}
],
"cny": [
{
"0x66a0f676479cee1d7373f3dc2e2952778bff5bd6": "1.4416484954022113"
},
{
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "25870.56558342986"
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.