GET /leaderboard/pnl/unrealized/markets/{marketId}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/limitless/leaderboard/pnl/unrealized/markets/{marketId}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Open-position leaderboard for one market, ranked by PnL or ROI.

Parameters

nameintypedescription
marketIdpathintrequiredNumeric Limitless market id (as returned by market payloads).
example: 468363
metricquerystr
pnl | roi
optionalRanking metric for the market position leaderboard.
default: pnl
example: pnl
limitqueryintoptionalRows per page (server caps vary by route; 100 is the widest documented).
example: 5
pagequeryintoptionalOne-based page number.
example: 1

Response

type: object
pagination: none
sample: {
  "asOf": "null",
  "data": "array[0]",
  "limit": "int",
  "page": "int",
  "totalPages": "int",
  "totalRows": "int",
  "collateralToken": "null",
  "markAsOf": "null",
  "marketId": "int",
  "metric": "str",
  "presentationVersion": "str",
  "projectionVersion": "str",
  "schemaVersion": "int",
  "scope": "str",
  "scopeVersion": "null",
  "staleReason": "null",
  "state": "str"
}

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/limitless/leaderboard/pnl/unrealized/markets/468363?metric=pnl&limit=5&page=1"