Get the projected realized-PnL leaderboard
curl --request GET \
--url https://testnet.edel-api.xyz/v1/leaderboardimport requests
url = "https://testnet.edel-api.xyz/v1/leaderboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testnet.edel-api.xyz/v1/leaderboard', 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://testnet.edel-api.xyz/v1/leaderboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://testnet.edel-api.xyz/v1/leaderboard"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testnet.edel-api.xyz/v1/leaderboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.edel-api.xyz/v1/leaderboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"version": "external-leaderboard/v1",
"windowKind": "daily",
"metricKind": "projected_realized_pnl",
"provenance": "off_chain_position_projection",
"boardVersion": "<string>",
"markEpochMs": 1,
"throughJournalSequence": 1,
"periodStartEpochMs": 1,
"periodEndEpochMs": 123,
"scoreHistogram": [
{
"percentileUpperBoundBps": 5000,
"minimumScoreAtoms": "<string>",
"maximumScoreAtoms": "<string>",
"accountCount": 123
}
],
"entries": [
{
"rank": 123,
"displayHandle": "<string>",
"scoreAtoms": "<string>",
"realizedPnlAtoms": "<string>",
"feesPaidAtoms": "<string>",
"fundingPaidAtoms": "<string>",
"closedNotionalAtoms": "<string>",
"fillCount": 1
}
],
"nextCursor": "<string>"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}Leaderboard
Get the projected realized-PnL leaderboard
Returns a keyset-paginated, version-pinned rank and score histogram built from off-chain position projections. Display the watermark as Data as of <markEpochMs>; it is the rollup snapshot clock, not Canton settlement finality. An empty published board returns 200 with entries: []; a missing or stale snapshot returns 503 with code snapshot_unavailable instead of an empty result. Bots, load-harness accounts, and zero-volume rows are excluded, and display handles are pseudonyms rather than internal account ids.
Method and path: GET /v1/leaderboard
Authentication: none.
Request schema: none.
Response schema: ExternalLeaderboardResponse.
Error envelope: ExternalRestError (external-rest-error/v1).
GET
/
v1
/
leaderboard
Get the projected realized-PnL leaderboard
curl --request GET \
--url https://testnet.edel-api.xyz/v1/leaderboardimport requests
url = "https://testnet.edel-api.xyz/v1/leaderboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testnet.edel-api.xyz/v1/leaderboard', 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://testnet.edel-api.xyz/v1/leaderboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://testnet.edel-api.xyz/v1/leaderboard"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://testnet.edel-api.xyz/v1/leaderboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.edel-api.xyz/v1/leaderboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"version": "external-leaderboard/v1",
"windowKind": "daily",
"metricKind": "projected_realized_pnl",
"provenance": "off_chain_position_projection",
"boardVersion": "<string>",
"markEpochMs": 1,
"throughJournalSequence": 1,
"periodStartEpochMs": 1,
"periodEndEpochMs": 123,
"scoreHistogram": [
{
"percentileUpperBoundBps": 5000,
"minimumScoreAtoms": "<string>",
"maximumScoreAtoms": "<string>",
"accountCount": 123
}
],
"entries": [
{
"rank": 123,
"displayHandle": "<string>",
"scoreAtoms": "<string>",
"realizedPnlAtoms": "<string>",
"feesPaidAtoms": "<string>",
"fundingPaidAtoms": "<string>",
"closedNotionalAtoms": "<string>",
"fillCount": 1
}
],
"nextCursor": "<string>"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}Query Parameters
UTC ranking window. Defaults to daily.
Available options:
daily, weekly, monthly, all_time Ranked metric. Only projected_realized_pnl is currently proven.
Available options:
projected_realized_pnl Page size, from 1 to 100.
Required range:
x <= 100Opaque cursor pinning the board version and last rank.
Minimum string length:
1Response
Success
Allowed value:
"external-leaderboard/v1"Available options:
daily, weekly, monthly, all_time Available options:
projected_realized_pnl Available options:
off_chain_position_projection Pattern:
^[1-9][0-9]*$Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Show child attributes
Show child attributes
Show child attributes
Show child attributes
Minimum string length:
1