Get equity curve
curl --request GET \
--url https://api.reperp.xyz/api/v1/positions/equity/{owner} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.reperp.xyz/api/v1/positions/equity/{owner}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.reperp.xyz/api/v1/positions/equity/{owner}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "success",
"data": [
{
"date": "2023-12-25",
"cumulative_pnl_after_fee": 123,
"unrealized_pnl": 123,
"total_equity": 123
}
]
}{
"status": "error",
"message": "<string>",
"errors": [
{}
]
}{
"error": "Unauthorized"
}{
"error": "Too many requests. Please wait for a moment."
}Wallet analytics
Get equity curve
Daily realized PnL, unrealized PnL and total equity of one wallet. The series starts no earlier than 2026-01-01, but cumulative_pnl_after_fee carries the full lifetime total. On Bullet, unrealized_pnl is 0 (realized only).
GET
/
positions
/
equity
/
{owner}
Get equity curve
curl --request GET \
--url https://api.reperp.xyz/api/v1/positions/equity/{owner} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.reperp.xyz/api/v1/positions/equity/{owner}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.reperp.xyz/api/v1/positions/equity/{owner}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "success",
"data": [
{
"date": "2023-12-25",
"cumulative_pnl_after_fee": 123,
"unrealized_pnl": 123,
"total_equity": 123
}
]
}{
"status": "error",
"message": "<string>",
"errors": [
{}
]
}{
"error": "Unauthorized"
}{
"error": "Too many requests. Please wait for a moment."
}Authorizations
Your API key. Keys are issued on request: message @perp_ag on X.
Path Parameters
The wallet: an account index on Lighter and RH Lighter, a Solana address on Jupiter, Phoenix and Bullet, an account object id (0x + 64 hex) on Aftermath.
Query Parameters
Venue. See Venues and identifiers.
Available options:
LIGHTER, RHLT, JUPITER, PHOENIX, BULLET, AFTERMATH Time range. 1M is 30 days, 3M 90 days, 1Y 365 days.
Available options:
7D, 1M, 3M, 1Y, YTD, ALL ⌘I