> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quantdesk.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get leaderboard

> Ranks active vault leaders by realized P&L. Rows linked to a published flex card also include verification badges; rows without linkage omit badges — rank alone is not verification.



## OpenAPI

````yaml /openapi.json get /api/v2/leaderboard
openapi: 3.1.0
info:
  title: QuantDesk API
  version: 2.0.0
  description: >-
    Public HTTP API for the QuantDesk perpetual DEX gateway. Endpoints are
    grouped by market data, unified portfolio state, oracle pricing, social
    surfaces, backtesting, and reference data. Field-level truth for on-chain
    accounts lives in the SDK; this reference documents the REST gateway
    surface.


    Authenticated routes accept a Bearer JWT obtained from the wallet session
    flow described in the Authentication guide.
  contact:
    name: QuantDesk Support
    url: https://docs.quantdesk.app
    email: support@quantdesk.app
  license:
    name: MIT
servers:
  - url: https://api.quantdesk.app
    description: Production gateway
security: []
tags:
  - name: Markets
    description: Market registry, metadata, and crankless orderbook depth.
  - name: Oracle
    description: Price feeds sourced from the Pyth oracle network.
  - name: Portfolio
    description: Unified portfolio state aggregated from on-chain accounts.
  - name: Data
    description: Authoritative market statistics and historical OHLCV candles.
  - name: Social
    description: Leaderboard and verified proof (flex) cards.
  - name: Backtesting
    description: Strategy simulation lifecycle and dataset catalog.
  - name: Referrals
    description: Referral validation before on-chain assignment.
paths:
  /api/v2/leaderboard:
    get:
      tags:
        - Social
      summary: Get leaderboard
      description: >-
        Ranks active vault leaders by realized P&L. Rows linked to a published
        flex card also include verification badges; rows without linkage omit
        badges — rank alone is not verification.
      operationId: getLeaderboard
      parameters:
        - name: limit
          in: query
          required: false
          description: Page size.
          schema:
            type: integer
            default: 10
            example: 5
        - name: offset
          in: query
          required: false
          description: Pagination offset.
          schema:
            type: integer
            default: 0
            example: 0
      responses:
        '200':
          description: Leaderboard rows
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/LeaderboardRow'
components:
  schemas:
    LeaderboardRow:
      type: object
      properties:
        vault_address:
          type: string
          example: 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2
        leader:
          type: string
          example: quant_owl
        total_pnl:
          type: number
          example: 128400.5
        strategy:
          type: string
          example: mean-reversion
        is_active:
          type: boolean
          example: true
        flex_card_id:
          type: string
          example: fc_9x2k1
        run_id:
          type: string
          example: b4f1c2a0-6d3e-4f7a-9c1b-0a2d3e4f5a6b
        badges:
          type: array
          description: >-
            Server-computed proof labels. Present only for rows linked to a
            verified flex card.
          items:
            type: string
          example:
            - gate-verified
            - live-tracked

````