> ## 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.

# Outcome PnL leaderboard

> Wallets ranked by realized PnL on HIP-4 outcome markets over the last 24 hours or 7 days, across all outcomes or for one outcome.



## OpenAPI

````yaml /data-api/openapi.json get /v1/outcomes/leaderboard
openapi: 3.1.0
info:
  title: Hyperdash Data API
  version: v1
  description: >-
    Hyperliquid data from Hyperdash's own nodes and stored datasets; requests
    never call Hyperliquid's public API. 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 dexes
  - name: Leaderboards
  - name: Lending
  - name: Liquidations
  - name: Markets
  - name: 'Markets: analytics'
  - name: 'Markets: funding'
  - name: 'Markets: liquidation and stop levels'
  - name: 'Markets: open interest and positioning'
  - name: 'Markets: order book'
  - name: 'Markets: prices and candles'
  - name: 'Markets: queue priority'
  - name: 'Markets: trades and flow'
  - name: 'Markets: TWAPs'
  - name: Network
  - name: Outcomes
  - name: Positions
  - name: Referrals
  - name: Snapshots
  - name: Spot
  - name: Staking
  - name: Traders
  - name: Vaults
paths:
  /v1/outcomes/leaderboard:
    get:
      tags:
        - Outcomes
      summary: Outcome PnL leaderboard
      description: >-
        Wallets ranked by realized PnL on HIP-4 outcome markets over the last 24
        hours or 7 days, across all outcomes or for one outcome.


        **How it works**

        - Realized PnL includes settled outcomes' payouts. Hyperliquid books a
        settlement as a Settlement fill.

        - Volume and the last trade count real trades only, not Settlement,
        Split Outcome, Merge Outcome, Negate Outcome or Merge Question fills.


        **Notes**

        - Results are cached for up to 5 minutes.


        **Credits:** 730 per request + 1 per row.


        **Scope:** `analytics:read`
      operationId: getOutcomeLeaderboard
      parameters:
        - name: hours
          in: query
          required: false
          description: Look-back in hours.
          schema:
            type: string
            default: '168'
            enum:
              - '24'
              - '168'
        - name: outcome
          in: query
          required: false
          description: One outcome id.
          schema:
            type: integer
            minimum: 0
            maximum: 1000000000000000
        - name: limit
          in: query
          required: false
          description: Rows to return, at most 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      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:
                        address:
                          type: string
                          description: Wallet.
                        realized_pnl:
                          type: string
                          description: >-
                            Realized PnL, in USD: `gross_pnl` minus `fees`.
                            Decimal string.
                        gross_pnl:
                          type: string
                          description: >-
                            Closed PnL, settlement results included. Decimal
                            string.
                        fees:
                          type: string
                          description: USDC fees, settlement fees included. Decimal string.
                        yes_notional:
                          type: string
                          description: >-
                            Yes-space notional of the wallet's taker trades.
                            Decimal string.
                        fills:
                          type: integer
                          description: >-
                            Fills in the window, including settlement, split and
                            merge fills.
                        markets:
                          type: integer
                          description: Outcomes with a fill in the window.
                        last_trade_at:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Last trade, in epoch milliseconds. `null` when the
                            window holds only settlement, split or merge fills.
                        share_fees:
                          type:
                            - string
                            - 'null'
                          description: Fees paid in outcome shares. Decimal string.
                        taker_share_volume:
                          type:
                            - string
                            - 'null'
                          description: Taker volume in shares, trades only. Decimal string.
                        account_value:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Account value from the latest snapshot, in USD.
                            Decimal string.
                        display_name:
                          type:
                            - string
                            - 'null'
                          description: Display name.
                        avatar:
                          type:
                            - string
                            - 'null'
                          description: Avatar image URL.
                        twitter:
                          type:
                            - string
                            - 'null'
                          description: X (Twitter) profile URL.
                        verified:
                          type:
                            - boolean
                            - 'null'
                          description: Verified profile.
                    description: Result rows.
                  has_more:
                    type: boolean
                    description: '`true` when another page follows.'
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Cursor for the next page, passed as `cursor`. `null` on
                      the last page.
                  meta:
                    type: object
                    description: >-
                      Response metadata. Its keys depend on the endpoint and are
                      described above.
        '400':
          description: 'Invalid parameter (also: a request body that is not valid JSON)'
          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, or a cursor's snapshot expired
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: >-
            Rate limited (Retry-After; free): request rate, concurrent requests
            (a request counts one slot per 1,000 rows it can return), or this
            server busy with your workspace's requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '502':
          description: Upstream data source failed (free; retry later)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: Backend at capacity or temporarily unavailable (Retry-After)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '504':
          description: Upstream data source timed out (free; retry later)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - bearer: []
      x-codeSamples:
        - lang: curl
          source: >-
            curl -H "Authorization: Bearer $HYPERDASH_API_KEY"
            'https://data.hyperdash.com/v1/outcomes/leaderboard?hours=168'
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: Your API key, sent as `Bearer hdk_sk_live_v1_…`.

````

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