Get open LP positions for an owner
curl --request GET \
--url https://api.lpagent.io/open-api/v1/lp-positions/open \
--header 'x-api-key: <api-key>'import requests
url = "https://api.lpagent.io/open-api/v1/lp-positions/open"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.lpagent.io/open-api/v1/lp-positions/open', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lpagent.io/open-api/v1/lp-positions/open",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lpagent.io/open-api/v1/lp-positions/open"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lpagent.io/open-api/v1/lp-positions/open")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lpagent.io/open-api/v1/lp-positions/open")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"count": 11,
"data": [
{
"status": "Open",
"strategyType": "BidAskImBalanced",
"tokenId": "Ep22EwKegXis3bTC6P8JLgsHaT5J2beM2TncKe2Hmv24",
"pairName": "GP",
"currentValue": "53413.446031254",
"inputValue": 54754.429180896324,
"inputNative": 307.6172496731366,
"outputValue": 0,
"outputNative": 0,
"collectedReward": 0,
"collectedRewardNative": 0,
"collectedFee": 5625.827591325444,
"collectedFeeNative": 31.587863106085184,
"uncollectedFee": "0",
"tickLower": -402,
"tickUpper": -333,
"pool": "2DeF1QHAQMpNXCGjcsm2pWw1V4KknGtwd2wEh2fTriKC",
"liquidity": "0",
"token0": "31k88G5Mq7ptbRDf3AM13HAq6wRQHXHikR8hik7wPygk",
"token1": "So11111111111111111111111111111111111111112",
"inRange": true,
"createdAt": "2025-07-25T16:23:04.000Z",
"updatedAt": "2025-08-01T03:35:38.000Z",
"pnl": {
"value": 1515.548691898919,
"percent": 2.7679015461779115,
"valueNative": 20.712922225935518,
"percentNative": 6.733342245255866
},
"pnlNative": -276.0293865670514,
"upnl": null,
"owner": "7KHx2Uc5qsqz652eXbu8Qtabi5KLxWJLgxFzcaBzP32i",
"dpr": 0.0042857830392432185,
"dprNative": 0.01042582025071876,
"ageHour": null,
"decimal0": 9,
"decimal1": 9,
"yield24h": null,
"apr": null,
"protocol": "meteora",
"token0Info": {
"token_symbol": "GP",
"token_name": "Graphite",
"token_decimals": 9,
"token_address": "31k88G5Mq7ptbRDf3AM13HAq6wRQHXHikR8hik7wPygk",
"logo": "https://arweave.net/ALLzymnuIihFPhoNUJpPxQzbGI8LodXKhNzXzbRMPbA"
},
"token1Info": {
"token_symbol": "SOL",
"token_name": "Wrapped SOL",
"token_decimals": 9,
"token_address": "So11111111111111111111111111111111111111112",
"logo": "https://www.dextools.io/resources/tokens/logos/3/solana/So11111111111111111111111111111111111111112.jpg"
},
"poolInfo": {
"fee": 100,
"tickSpacing": 100
},
"age": "6.49",
"position": "Ep22EwKegXis3bTC6P8JLgsHaT5J2beM2TncKe2Hmv24",
"logo0": "https://token-logo.lpagent.io/api/v1/logo?address=31k88G5Mq7ptbRDf3AM13HAq6wRQHXHikR8hik7wPygk&chain=SOL",
"logo1": "https://token-logo.lpagent.io/api/v1/logo?address=So11111111111111111111111111111111111111112&chain=SOL",
"tokenName0": "GP",
"tokenName1": "SOL",
"priceRange": [
3.1257738735100027,
6.210582680442794,
3.8521785290623467
],
"range": [
-402,
-333,
-381
],
"value": 50639.07907119099,
"valueNative": 296.7125947462876,
"current": {
"amount0": "6134935664996.8532855",
"amount1": "158524771007.10491558",
"amount0Adjusted": 6134.935664996853,
"amount1Adjusted": 158.52477100710493
},
"unCollectedFee0": 1.31917386,
"unCollectedFee1": 0,
"unCollectedFee": 5.071210278816663,
"unCollectedFeeNative": 0.029714046699316238,
"price0": 3.844231933777601,
"price1": 170.66710334453902,
"id": "Ep22EwKegXis3bTC6P8JLgsHaT5J2beM2TncKe2Hmv24",
"logs": []
}
]
}{
"status": "error",
"message": "owner is required"
}Positions
Get open LP positions for an owner
Retrieves current liquidity pool positions that are open for a specific wallet owner. Covers every protocol served on the requested chain (meteora,meteora_damm_v2 on SOL, uniswap_v3,uniswap_v4 on ROBINHOOD); pass platform to narrow it. /lp-positions/opening, the original path, returns the same response and keeps working.
GET
/
lp-positions
/
open
Get open LP positions for an owner
curl --request GET \
--url https://api.lpagent.io/open-api/v1/lp-positions/open \
--header 'x-api-key: <api-key>'import requests
url = "https://api.lpagent.io/open-api/v1/lp-positions/open"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.lpagent.io/open-api/v1/lp-positions/open', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lpagent.io/open-api/v1/lp-positions/open",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lpagent.io/open-api/v1/lp-positions/open"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lpagent.io/open-api/v1/lp-positions/open")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lpagent.io/open-api/v1/lp-positions/open")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"count": 11,
"data": [
{
"status": "Open",
"strategyType": "BidAskImBalanced",
"tokenId": "Ep22EwKegXis3bTC6P8JLgsHaT5J2beM2TncKe2Hmv24",
"pairName": "GP",
"currentValue": "53413.446031254",
"inputValue": 54754.429180896324,
"inputNative": 307.6172496731366,
"outputValue": 0,
"outputNative": 0,
"collectedReward": 0,
"collectedRewardNative": 0,
"collectedFee": 5625.827591325444,
"collectedFeeNative": 31.587863106085184,
"uncollectedFee": "0",
"tickLower": -402,
"tickUpper": -333,
"pool": "2DeF1QHAQMpNXCGjcsm2pWw1V4KknGtwd2wEh2fTriKC",
"liquidity": "0",
"token0": "31k88G5Mq7ptbRDf3AM13HAq6wRQHXHikR8hik7wPygk",
"token1": "So11111111111111111111111111111111111111112",
"inRange": true,
"createdAt": "2025-07-25T16:23:04.000Z",
"updatedAt": "2025-08-01T03:35:38.000Z",
"pnl": {
"value": 1515.548691898919,
"percent": 2.7679015461779115,
"valueNative": 20.712922225935518,
"percentNative": 6.733342245255866
},
"pnlNative": -276.0293865670514,
"upnl": null,
"owner": "7KHx2Uc5qsqz652eXbu8Qtabi5KLxWJLgxFzcaBzP32i",
"dpr": 0.0042857830392432185,
"dprNative": 0.01042582025071876,
"ageHour": null,
"decimal0": 9,
"decimal1": 9,
"yield24h": null,
"apr": null,
"protocol": "meteora",
"token0Info": {
"token_symbol": "GP",
"token_name": "Graphite",
"token_decimals": 9,
"token_address": "31k88G5Mq7ptbRDf3AM13HAq6wRQHXHikR8hik7wPygk",
"logo": "https://arweave.net/ALLzymnuIihFPhoNUJpPxQzbGI8LodXKhNzXzbRMPbA"
},
"token1Info": {
"token_symbol": "SOL",
"token_name": "Wrapped SOL",
"token_decimals": 9,
"token_address": "So11111111111111111111111111111111111111112",
"logo": "https://www.dextools.io/resources/tokens/logos/3/solana/So11111111111111111111111111111111111111112.jpg"
},
"poolInfo": {
"fee": 100,
"tickSpacing": 100
},
"age": "6.49",
"position": "Ep22EwKegXis3bTC6P8JLgsHaT5J2beM2TncKe2Hmv24",
"logo0": "https://token-logo.lpagent.io/api/v1/logo?address=31k88G5Mq7ptbRDf3AM13HAq6wRQHXHikR8hik7wPygk&chain=SOL",
"logo1": "https://token-logo.lpagent.io/api/v1/logo?address=So11111111111111111111111111111111111111112&chain=SOL",
"tokenName0": "GP",
"tokenName1": "SOL",
"priceRange": [
3.1257738735100027,
6.210582680442794,
3.8521785290623467
],
"range": [
-402,
-333,
-381
],
"value": 50639.07907119099,
"valueNative": 296.7125947462876,
"current": {
"amount0": "6134935664996.8532855",
"amount1": "158524771007.10491558",
"amount0Adjusted": 6134.935664996853,
"amount1Adjusted": 158.52477100710493
},
"unCollectedFee0": 1.31917386,
"unCollectedFee1": 0,
"unCollectedFee": 5.071210278816663,
"unCollectedFeeNative": 0.029714046699316238,
"price0": 3.844231933777601,
"price1": 170.66710334453902,
"id": "Ep22EwKegXis3bTC6P8JLgsHaT5J2beM2TncKe2Hmv24",
"logs": []
}
]
}{
"status": "error",
"message": "owner is required"
}查询参数
Blockchain network to query. SOL returns Meteora (DLMM / DAMM v2) data; ROBINHOOD returns Uniswap V3 and V4 data on Robinhood Chain (EVM, chain id 4663). ELYSIUM serves Uniswap V3 and V4 on Elysium (EVM, chain id 99901) the same way as ROBINHOOD. Always pass it for Elysium data. Unrecognised values fall back to SOL.
可用选项:
SOL, ROBINHOOD, ELYSIUM 此页面对您有帮助吗?