GET /api/v1/pnlLeaderboard

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/pnlLeaderboardCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Trader PnL, volume, and ROI leaderboard across selectable time windows.

Parameters

nameintypedescription
time_windowquerystr
24h | 7d | 30d | all
requiredLeaderboard window.
example: 7d
sort_byquerystrrequiredSort metric (pnl, roi, volume).
example: pnl
sort_dirquerystrrequiredSort direction (asc, desc).
example: desc
limitqueryintrequiredRows to return.
example: 5
offsetqueryintrequiredPagination offset.
example: 0
searchquerystroptionalOptional trader search string.

Response

type: object
data key: entries
count key: total
pagination: offset
sample: {
  "code": "int",
  "entries": "array[5]",
  "total": "int",
  "updated_at": "int"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/pnlLeaderboard?time_window=7d&sort_by=pnl&sort_dir=desc&limit=5&offset=0"