Skip to main content
GET
/
v1
/
liquidity
/
positions
Get Liquidity Positions
curl --request GET \
  --url https://api.amm.flashnet.xyz/v1/liquidity/positions \
  --header 'Authorization: Bearer <token>'
{
  "lpPublicKey": "03fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210",
  "positions": [
    {
      "assetAAddress": "03abcdef123...",
      "assetAAmount": "500000",
      "assetBAddress": "03fedcba321...",
      "assetBAmount": "250000",
      "lpFeeRateBps": 100,
      "lpTokenSupply": "1000000000000",
      "poolId": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899",
      "userLpTokens": "100000000",
      "userShareOfPoolPercent": 10
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Successfully retrieved LP positions

Response containing all of a user's liquidity positions.

lpPublicKey
string
required

The public key of the liquidity provider.

Example:

"03fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210"

positions
object[]
required

A list of the user's liquidity positions.