Returns a wallet's daily balances and points for a season
curl --request GET \
--url https://api.yieldpoint.io/v1/leaderboard/{season}/{address}/historyconst options = {method: 'GET'};
fetch('https://api.yieldpoint.io/v1/leaderboard/{season}/{address}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.yieldpoint.io/v1/leaderboard/{season}/{address}/history"
response = requests.get(url)
print(response.text){
"season": 123,
"user": "<string>",
"days": [
{
"date": "<string>",
"points": 123,
"valueUsd": 123,
"cumulativePoints": 123,
"positions": [
{
"position": "hold_uty",
"chainId": 123,
"balance": 123,
"valueUsd": 123,
"multiplier": 123,
"points": 123
}
]
}
]
}Leaderboard
Get wallet history
A wallet’s daily balances and points for a season, oldest day first.
GET
/
v1
/
leaderboard
/
{season}
/
{address}
/
history
Returns a wallet's daily balances and points for a season
curl --request GET \
--url https://api.yieldpoint.io/v1/leaderboard/{season}/{address}/historyconst options = {method: 'GET'};
fetch('https://api.yieldpoint.io/v1/leaderboard/{season}/{address}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.yieldpoint.io/v1/leaderboard/{season}/{address}/history"
response = requests.get(url)
print(response.text){
"season": 123,
"user": "<string>",
"days": [
{
"date": "<string>",
"points": 123,
"valueUsd": 123,
"cumulativePoints": 123,
"positions": [
{
"position": "hold_uty",
"chainId": 123,
"balance": 123,
"valueUsd": 123,
"multiplier": 123,
"points": 123
}
]
}
]
}Returns one row per New York calendar day on which the wallet held a tracked position during the season, oldest first. Only closed days are included.
Each day reports the
points earned that day, the wallet’s total position valueUsd, and cumulativePoints through that day. The last day’s cumulativePoints equals the wallet’s totalPoints from Get wallet rank exactly, so you can reconcile the two routes without rounding.
positions is the per-chain detail for the day. Unlike the breakdown on the wallet route, each row is one position on one chain: position, chainId, end-of-day balance, valueUsd, the multiplier in force that day, and the points that row contributed. Summing points across the rows gives the day’s points.
curl https://api.yieldpoint.io/v1/leaderboard/s2/0x1111111111111111111111111111111111111111/history