Liquidity Positions
Get User Liquidity Positions
HTTP Request
GET
/api/account/liquidity/{address}
Request Frequency Restriction:
- Recommended: no more than 3 times per second
Postman
pay attention to replace "restful_base_endpoint" and "{address}"
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | User wallet address (path parameter) |
Response Fields Description
| Name | Type | Description |
|---|---|---|
| poolId | string | Liquidity pool ID |
| tokenXSymbol | string | Token X symbol |
| tokenYSymbol | string | Token Y symbol |
| tokenXType | string | Token X type |
| tokenYType | string | Token Y type |
| tokenXAmount | string | Token X amount in the position |
| tokenYAmount | string | Token Y amount in the position |
| valueUsdX | string | Token X value in USD |
| valueUsdY | string | Token Y value in USD |
| lpBalance | string | LP token balance |
| share | string | Share percentage in the pool |
| valueUsd | string | Total position value in USD |
| iconUrlX | string | Token X icon URL |
| iconUrlY | string | Token Y icon URL |
| lpCoinType | string | LP coin type |
| feeRate | string | Trading fee rate |
Response
{
"code": 200,
"message": "success",
"data": [
{
"poolId": "0x...",
"tokenXSymbol": "BTC",
"tokenYSymbol": "USDT",
"tokenXType": "0x2::sui::SUI",
"tokenYType": "0x...",
"tokenXAmount": "10.5",
"tokenYAmount": "525000",
"valueUsdX": "525000",
"valueUsdY": "525000",
"lpBalance": "100.5",
"share": "0.01",
"valueUsd": "1050000",
"iconUrlX": "https://...",
"iconUrlY": "https://...",
"lpCoinType": "0x...",
"feeRate": "0.003"
}
]
}