curl --request GET \
--url https://api.agg.market/leaderboard/series \
--header 'x-app-id: <api-key>'import requests
url = "https://api.agg.market/leaderboard/series"
headers = {"x-app-id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-app-id': '<api-key>'}};
fetch('https://api.agg.market/leaderboard/series', 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.agg.market/leaderboard/series",
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-app-id: <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.agg.market/leaderboard/series"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-app-id", "<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.agg.market/leaderboard/series")
.header("x-app-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agg.market/leaderboard/series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-app-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"userId": "<string>",
"from": "<string>",
"to": "<string>",
"points": [
{
"day": "<string>",
"orders": 123,
"volume": 123,
"spent": 123,
"realizedPnl": 123,
"cumulativeRealizedPnl": 123
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"statusCode": 429,
"code": "rate_limited",
"retryAfter": 2
}Trader leaderboard series
One user’s leaderboard stats per UTC day — orders, volume, spent and realizedPnl, plus a running cumulativeRealizedPnl — oldest first, ready to chart in one call. Pass exactly one of userId, externalId, username or walletAddress (username and walletAddress follow the app’s leaderboardIdentity setting, as on /leaderboard). Defaults to the last 30 days ending today; at most 366 days; a to after today is clamped to today. Every day in the range is returned, days without activity as 0. cumulativeRealizedPnl starts from 0 at from. Each day’s fields match /leaderboard for that one-day range exactly. realizedPnl is gross, position-level realized P&L in USD (sells against average entry on the order’s creation day, settlement payout against entry on the settlement day), excluding venue and app fees. Unrealized P&L on open positions is not included. Positions with an unknown cost basis contribute 0. P&L is complete from the leaderboard deploy date; earlier settled positions carry their lifetime P&L on their redemption day. Data refreshes every 5 minutes.
curl --request GET \
--url https://api.agg.market/leaderboard/series \
--header 'x-app-id: <api-key>'import requests
url = "https://api.agg.market/leaderboard/series"
headers = {"x-app-id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-app-id': '<api-key>'}};
fetch('https://api.agg.market/leaderboard/series', 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.agg.market/leaderboard/series",
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-app-id: <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.agg.market/leaderboard/series"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-app-id", "<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.agg.market/leaderboard/series")
.header("x-app-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agg.market/leaderboard/series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-app-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"userId": "<string>",
"from": "<string>",
"to": "<string>",
"points": [
{
"day": "<string>",
"orders": 123,
"volume": 123,
"spent": 123,
"realizedPnl": 123,
"cumulativeRealizedPnl": 123
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"statusCode": 429,
"code": "rate_limited",
"retryAfter": 2
}Authorizations
Your application ID. Required for all app-tier and user-tier routes.
Query Parameters
UTC calendar day, inclusive
^\d{4}-\d{2}-\d{2}$UTC calendar day, inclusive
^\d{4}-\d{2}-\d{2}$1111Response
200
AGG user id.
First day of the series (UTC, inclusive).
Last day of the series (UTC, inclusive); never after today.
One point per UTC day in [from, to], oldest first. Days without activity are 0.
366Show child attributes
Show child attributes