Users
Get LP positions for a user
Users
Get LP positions for a user
GET
/
users
/
{user_address}
/
positions
curl --request GET \
--url https://api.gte.xyz/v1/users/{user_address}/positions
{
"positions": [
{
"market": {
"marketType": "amm",
"address": "<string>",
"baseAsset": {
"address": "<string>",
"decimals": 123,
"name": "<string>",
"symbol": "<string>",
"creator": "<string>",
"totalSupply": 123,
"mediaUri": "<string>"
},
"quoteAsset": {
"address": "<string>",
"decimals": 123,
"name": "<string>",
"symbol": "<string>",
"creator": "<string>",
"totalSupply": 123,
"mediaUri": "<string>"
},
"price": 123
},
"user": "<string>",
"token0Amount": 123,
"token1Amount": 123
}
],
"total": 123
}
Path Parameters
Response
200
application/json
List of user's LP positions
Market on which the LP position is held
Type of the market
Available options:
amm
, launchpad
EVM address of the market
Base asset of the market. On AMMs, this token comes first in the pair.
EVM address of the asset
Number of decimals for the asset
Name of the asset
Symbol of the asset
EVM address of the creator
Total supply of the asset
URI of the asset's media
Quote asset of the market. On AMMs, this token comes second in the pair.
EVM address of the asset
Number of decimals for the asset
Name of the asset
Symbol of the asset
EVM address of the creator
Total supply of the asset
URI of the asset's media
Price of the quote asset in the base asset
EVM address of the user
Amount of token0 in the LP position
Amount of token1 in the LP position
curl --request GET \
--url https://api.gte.xyz/v1/users/{user_address}/positions
{
"positions": [
{
"market": {
"marketType": "amm",
"address": "<string>",
"baseAsset": {
"address": "<string>",
"decimals": 123,
"name": "<string>",
"symbol": "<string>",
"creator": "<string>",
"totalSupply": 123,
"mediaUri": "<string>"
},
"quoteAsset": {
"address": "<string>",
"decimals": 123,
"name": "<string>",
"symbol": "<string>",
"creator": "<string>",
"totalSupply": 123,
"mediaUri": "<string>"
},
"price": 123
},
"user": "<string>",
"token0Amount": 123,
"token1Amount": 123
}
],
"total": 123
}