Skip to Content
Futures Data

Get leaderboard

Deprecated

GET/futures/leaderboardPublic

Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the top 10 users by P&L over the last day, 7 days, 30 days and all time. Users who hide from the leaderboard show as Anonymous.

Response Body

OK

application/json
  1. response
daily*array<>
weekly*array<>
monthly*array<>
all-time*array<>
import { createHttpClient } from '@ln-markets/sdk/rest/v3'

const client = createHttpClient()

const result = await client.futures.getLeaderboard()
{
  "daily": [
    {
      "username": "string",
      "pl": 0,
      "direction": 0
    }
  ],
  "weekly": [
    {
      "username": "string",
      "pl": 0,
      "direction": 0
    }
  ],
  "monthly": [
    {
      "username": "string",
      "pl": 0,
      "direction": 0
    }
  ],
  "all-time": [
    {
      "username": "string",
      "pl": 0,
      "direction": 0
    }
  ]
}