GET /dlmm/positions/{pool_address}/pnl

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/meteora/dlmm/positions/{pool_address}/pnlCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Wallet position-level PnL inside a specific DLMM pool.

Parameters

nameintypedescription
pool_addresspathstrrequiredDLMM pool address.
example: 5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6
userquerystrrequiredSolana wallet address.
example: 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1
statusquerystroptionalPosition status: open or closed.
default: open
example: open
pagequeryintoptional1-based page number.
default: 1
example: 1

Response

type: object
data key: positions
count key: totalCount
pagination: offset
sample: {
  "tokenX": "null",
  "tokenY": "null",
  "totalCount": "int",
  "page": "int",
  "pageSize": "int",
  "hasNext": "bool",
  "positions": "array[0]",
  "tokenXPrice": "str",
  "tokenYPrice": "str",
  "rewardTokenX": "null",
  "rewardTokenY": "null",
  "rewardTokenXPrice": "str",
  "rewardTokenYPrice": "str"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/meteora/dlmm/positions/5rCf1DM8LjKTw4YqhnoLcngyZYeNnQqztScTogYHAS6/pnl?user=5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1&status=open&page=1"