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

# The wallet's PnL leaderboard row (rank, net / realized / unrealized PnL, ROI)

> The wallet's own row on hyperdash.com's PnL leaderboard (GET /v1/leaderboards/pnl, or the per-market board with `coin`): rank for the chosen sort, net PnL with its realized / unrealized split, capital and ROI over the window, the numbers of the site's profile Performance card. Portfolio PnL: partial closes and open positions count (unlike the completed-trade statistics routes). No row when the wallet is not ranked on that board and sort. Cached up to 1 min.

Pricing: flat. Scope: `analytics:read`.



## OpenAPI

````yaml /data-api/openapi.json get /v1/accounts/{address}/leaderboard
openapi: 3.1.0
info:
  title: Hyperdash Data API
  version: v1
  description: >-
    Hyperliquid data from Hyperdash's own nodes. Every response reports the
    credits it cost.
servers:
  - url: https://data.hyperdash.com
security: []
tags:
  - name: Accounts
  - name: Async jobs
  - name: Builders
  - name: Cohorts
  - name: HIP-3 DEXs
  - name: Leaderboards
  - name: Lending
  - name: Liquidations
  - name: Markets
  - name: Network
  - name: Outcomes
  - name: Positions
  - name: Snapshots
  - name: Spot
  - name: Staking
  - name: Traders
paths:
  /v1/accounts/{address}/leaderboard:
    get:
      tags:
        - Accounts
      summary: >-
        The wallet's PnL leaderboard row (rank, net / realized / unrealized PnL,
        ROI)
      description: >-
        The wallet's own row on hyperdash.com's PnL leaderboard (GET
        /v1/leaderboards/pnl, or the per-market board with `coin`): rank for the
        chosen sort, net PnL with its realized / unrealized split, capital and
        ROI over the window, the numbers of the site's profile Performance card.
        Portfolio PnL: partial closes and open positions count (unlike the
        completed-trade statistics routes). No row when the wallet is not ranked
        on that board and sort. Cached up to 1 min.


        Pricing: flat. Scope: `analytics:read`.
      operationId: getWalletLeaderboard
      parameters:
        - name: address
          in: path
          required: true
          description: Wallet, 0x + 40 hex.
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{40}$
        - name: window
          in: query
          required: false
          description: Window.
          schema:
            type: string
            default: alltime
            enum:
              - alltime
              - 24h
              - 7d
              - 30d
              - ytd
        - name: category
          in: query
          required: false
          description: Asset category (all-markets board; omit with coin).
          schema:
            type: string
            default: all
            enum:
              - all
              - crypto
              - majors
              - memes
              - alts
              - equities
              - indices
              - commodities
              - fx
        - name: sort
          in: query
          required: false
          description: >-
            Ranked metric: total (net PnL), realized, unrealized, or their ROI
            (÷ capital; wallets with capital ≥ $1,000). Wallets without that
            value are not ranked.
          schema:
            type: string
            default: total
            enum:
              - total
              - realized
              - unrealized
              - roi
              - realized_roi
              - unrealized_roi
        - name: coin
          in: query
          required: false
          description: >-
            One market's board instead of a category, e.g. BTC, xyz:GOLD
            (case-sensitive).
          schema:
            type: string
            pattern: ^[A-Za-z0-9:_\-/@.]{1,40}$
        - name: X-Max-Credits
          in: header
          required: false
          description: Refuse (free) if the request could cost more.
          schema:
            type: integer
        - name: X-Credit-Price-Version
          in: header
          required: false
          description: Expected price version; 409 price_changed if it differs.
          schema:
            type: integer
      responses:
        '200':
          description: OK
          headers:
            X-Credits-Charged:
              schema:
                type: integer
            X-Credit-Price-Version:
              schema:
                type: integer
            X-Request-Id:
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - has_more
                  - next_cursor
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        rank:
                          type: integer
                          description: Rank on the board for the sort (1 = best)
                        net_pnl:
                          type: string
                          description: >-
                            Net PnL over the window (USD) (decimal string; may
                            carry extra trailing zeros)
                        realized_pnl:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Realized PnL over the window (USD): closed PnL −
                            fees + funding, partial closes included (decimal
                            string; may carry extra trailing zeros)
                        unrealized_pnl:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Change in open-position unrealized PnL over the
                            window (USD); all time: open unrealized PnL now
                            (decimal string; may carry extra trailing zeros)
                        capital:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Capital (USD): equity at the window start + peak net
                            external inflow (decimal string; may carry extra
                            trailing zeros)
                        roi:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Net PnL ÷ capital (ratio: 0.417 = 41.7 %) (decimal
                            string; may carry extra trailing zeros)
                        realized_roi:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Realized PnL ÷ capital (ratio) (decimal string; may
                            carry extra trailing zeros)
                        unrealized_roi:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Unrealized PnL ÷ capital (ratio) (decimal string;
                            may carry extra trailing zeros)
                        window_start:
                          type:
                            - integer
                            - 'null'
                          description: Window start, epoch ms (null for all time)
                        as_of:
                          type:
                            - integer
                            - 'null'
                          description: Board computed at, epoch ms
                  has_more:
                    type: boolean
                  next_cursor:
                    type:
                      - string
                      - 'null'
                  meta:
                    type: object
        '400':
          description: Invalid parameter
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Invalid, expired or revoked key
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Scope, plan, history or credit limit
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Price version changed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Rate limited (Retry-After)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: Backend at capacity (Retry-After)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - bearer: []
      x-codeSamples:
        - lang: curl
          source: >-
            curl -H 'Authorization: Bearer $HD_KEY'
            'https://data.hyperdash.com/v1/accounts/0x…/leaderboard?window=30d'
components:
  schemas:
    Problem:
      type: object
      required:
        - type
        - title
        - status
        - code
        - request_id
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        code:
          type: string
        detail:
          type: string
        hint:
          type: string
        request_id:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: hdk_sk_live_v1_… or hdk_sk_test_v1_…

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.