GET
/
v1
/
pools
/
{poolId}
/
lp
/
{providerPublicKey}
Get LP Position
curl --request GET \
  --url https://api.amm.flashnet.xyz/v1/pools/{poolId}/lp/{providerPublicKey} \
  --header 'Authorization: Bearer <token>'
{
"lpTokensOwned": "1000000.00000000",
"poolId": "0315299b3f9f4e2beb8576ea2bf72ea1bc741eb255bfc3f6387de4d47b5c05972d",
"principalAssetA": 2000000000,
"principalAssetB": 1000000,
"providerPublicKey": "03b06b7c3e39bf922be19b7ad5f19554bb7991cae585ed2e3374d51213ff4eeb3c",
"sharePercentage": "25.5",
"unrealizedProfitLossAssetA": 500000000,
"unrealizedProfitLossAssetB": 250000,
"valueAssetA": 250000000,
"valueAssetB": 1250000
}

Authorizations

Authorization
string
header
required

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

Path Parameters

poolId
string
required

The LP public key of the pool

providerPublicKey
string
required

The public key of the liquidity provider

Response

200
application/json

LP position details retrieved successfully

Response type matching the OpenAPI specification for LP position details.