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

LP position details retrieved successfully

Response type matching the OpenAPI specification for LP position details.

providerPublicKey
string
required

The public key of the liquidity provider.

poolId
string
required

The unique identifier of the pool.

lpTokensOwned
string
required

The number of LP tokens owned by the provider (in smallest units).

Example:

"50250000.00000000"

sharePercentage
string
required

The provider's share of the pool, as a string (e.g., "0.05" for 5%).

Example:

"0.05"

valueAssetA
integer
required

The current value of the provider's position in asset A (in smallest units).

Required range: x >= 0
Example:

"5025000"

valueAssetB
integer
required

The current value of the provider's position in asset B (in smallest units).

Required range: x >= 0
Example:

"2500125"

principalAssetA
integer | null

The principal amount of asset A originally deposited by the provider (in smallest units).

Required range: x >= 0
Example:

"4800000"

principalAssetB
integer | null

The principal amount of asset B originally deposited by the provider (in smallest units).

Required range: x >= 0
Example:

"2400000"

unrealizedProfitLossAssetA
string | null

The unrealized profit or loss in asset A (in smallest units).

Example:

"225000"

unrealizedProfitLossAssetB
string | null

The unrealized profit or loss in asset B (in smallest units).

Example:

"100125"