GET
/
users
/
{user_address}
/
lppositions
Get LP positions for a user
curl --request GET \
  --url https://api-testnet.gte.xyz/v1/users/{user_address}/lppositions
[
  {
    "market": {
      "marketType": "bonding-curve",
      "address": "<string>",
      "baseToken": {
        "address": "<string>",
        "decimals": 123,
        "name": "<string>",
        "symbol": "<string>",
        "totalSupply": 123,
        "logoUri": "<string>",
        "priceUsd": 123,
        "volume1HrUsd": 123,
        "volume24HrUsd": 123,
        "marketCapUsd": 123,
        "marketType": "bonding-curve"
      },
      "quoteToken": {
        "address": "<string>",
        "decimals": 123,
        "name": "<string>",
        "symbol": "<string>",
        "totalSupply": 123,
        "logoUri": "<string>",
        "priceUsd": 123,
        "volume1HrUsd": 123,
        "volume24HrUsd": 123,
        "marketCapUsd": 123,
        "marketType": "bonding-curve"
      },
      "price": 123,
      "priceUsd": 123,
      "volume24HrUsd": 123,
      "priceChange24Hr": 123,
      "priceChange1Hr": 123,
      "volume1HrUsd": 123,
      "marketCapUsd": 123,
      "createdAt": 123,
      "tvlUsd": 123,
      "liquidityUsd": 123,
      "bondingPercentage": 123
    },
    "balance": 123,
    "shareOfPool": 123,
    "apr": 123,
    "token0Amount": "<string>",
    "token1Amount": "<string>"
  }
]

Path Parameters

user_address
string
required

EVM address

Response

List of user's LP positions

market
object
required

Market in which the LP position is held

balance
number
required

Amount of LP tokens a user holds

shareOfPool
number
required

Percentage of the pool of the position

apr
number
required

APR of the liquidity pool

token0Amount
string
required

Amount of token0 in LP

token1Amount
string
required

Amount of token1 in Lp