Skip to main content

getPositions

Fetches all liquidity positions for a given user address on Angstrom.

warning

This method is only available through the data endpoint.

Parameters

ParameterTypeDescription
user_addressstringThe address of the user
start_token_idnumberThe first position token id to look at
end_token_idnumberThe last position token id to look at (auto CAP at start_token_id + 100)
pool_idstring?(optional) Hex string of the PoolId of the pool whose key you wish to filter by
max_resultsnumber?(optional) The number of results to return
block_numbernumber?(optional) Block height to fetch the configuration at (defaults to latest)

Result

Array<UserLiquidityPosition> — Returns an array of objects, each containing:

FieldTypeDescription
token_idstringThe ID of the liquidity position
tick_lowernumberThe lower tick boundary of the position
tick_uppernumberThe upper tick boundary of the position
liquiditynumberThe liquidity of the position
pool_keyobjectThe PoolKey for the pool

Request

curl "https://api.data.angstrom.xyz" \
-X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0",
"id":1,
"method":"angstrom_getPositions",
"params":[
"0xMyAddress"
1,
2
]
}
'