Leaderboard
Traktor's own accounts, ranked by what their trades through Traktor realized.
GET /v1/leaderboard answers with the board Traktor's Traders page draws as its Traktor leaderboard view: its accounts ranked by what their trades through Traktor realized in a window.
GET /v1/leaderboard
The leaderboard of Traktor's own accounts, ranked by what their trades through Traktor realized in a window, with the standing of the key's account.
- Credential
- API key
- REST units
- 1 unit
windowenumqueryThe range, as the Portfolio tab's chart reads it.
Default
7dOne of:24h,7d,30d,all
Limits
- Invalid keys30 a minute, per IP
- Accounts listed1,000 rows, per request
Errors
invalid_parameter, unknown_parameter, duplicate_query_parameter, data_unavailable, missing_credentials, invalid_key, key_revoked, subscription_inactive, key_in_query, method_not_allowed, rate_limited, quota_exhausted, rate_limit_unavailable, internal_error
curl -s "https://api.traktor.fun/v1/leaderboard" \
-H "Authorization: Bearer $TRAKTOR_API_KEY"const response = await fetch("https://api.traktor.fun/v1/leaderboard", {
headers: { Authorization: `Bearer ${process.env.TRAKTOR_API_KEY}` },
});
const body = await response.json();import os
import requests
response = requests.get(
"https://api.traktor.fun/v1/leaderboard",
headers={"Authorization": f"Bearer {os.environ['TRAKTOR_API_KEY']}"},
)
print(response.json())Each sale in the window is booked against the average cost of the account's buys before it, the way its Portfolio tab books it, and window picks the range as that tab's chart does. The board lists the first 1,000 accounts, the most realized first, and summary counts every account ranked, past the list too.
pnlUsdisnullwhen none of the window's sales was of a token whose cost the ledger names, such as one that came from outside, since what those tokens cost is unknown; such a row comes after every row with a figure, andsummary.pnlUsdadds up the rows that have one.roiis what the sales realized over what the tokens sold cost, andnullwhile nothing sold had a cost the ledger names.winsandlossescount the tokens whose sales realized more, or lost more, than half a cent;winRateis wins over the tokens decided either way,nullwhile none is.youis the standing of the account that owns the key, with its place on the whole board, andnullwhile that account has no buy or sale in the window or is not ranked at all: closed, suspended, or kept off the board at its owner's request.
A row names an account by its X or Traktor name and an id that stays the same for the account, never a wallet. The board is read from the ledger once a minute, and meta.asOf dates that read. While a new read fails, the last board stays up to five minutes old, its meta.asOf saying so; past that, a board that cannot be read is 503 data_unavailable, and its unit comes back (Limit headers).