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

# Deprecated: Get Top Traders (All Tokens)

> Deprecated. For current Solana trader rankings, use `GET /v2/pnl/leaderboard/top`.

Gets the most profitable traders across all tokens

## SDK Example

<CodeGroup>
  ```typescript SDK
  import { Client } from '@solana-tracker/data-api';

  const client = new Client({ apiKey: 'YOUR_API_KEY' });

  const data = await client.getTopTraders();

  ```
</CodeGroup>


## OpenAPI

````yaml /data-api/openapi.json get /top-traders/all
openapi: 3.1.0
info:
  title: Solana Tracker Data API
  description: >-
    Solana Tracker Data API for token prices, holders, trades, charts, wallet
    data, risk signals, and market analytics.
  version: 1.0.0
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Production server
security:
  - apiKey: []
paths:
  /top-traders/all:
    get:
      tags:
        - Top Traders
      summary: 'Deprecated: Get Top Traders (All Tokens)'
      description: >-
        Deprecated. For current Solana trader rankings, use `GET
        /v2/pnl/leaderboard/top`.


        Gets the most profitable traders across all tokens
      parameters:
        - name: expandPnl
          in: query
          description: Include detailed PnL data for each token if true
          schema:
            type: boolean
        - name: sortBy
          in: query
          description: Sort results by metric
          schema:
            type: string
            enum:
              - total
              - winPercentage
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopTradersAllResponse'
      deprecated: true
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: |
            import { Client } from '@solana-tracker/data-api';

            const client = new Client({ apiKey: 'YOUR_API_KEY' });

            const data = await client.getTopTraders();
      x-code-samples:
        - lang: typescript
          label: SDK
          source: |
            import { Client } from '@solana-tracker/data-api';

            const client = new Client({ apiKey: 'YOUR_API_KEY' });

            const data = await client.getTopTraders();
components:
  schemas:
    TopTradersAllResponse:
      type: object
      properties:
        wallets:
          type: array
          items:
            type: object
            properties:
              wallet:
                type: string
              summary:
                $ref: '#/components/schemas/PnLSummary'
    PnLSummary:
      type: object
      properties:
        realized:
          type: number
        unrealized:
          type: number
        total:
          type: number
        totalInvested:
          type: number
        averageBuyAmount:
          type: number
        totalWins:
          type: integer
        totalLosses:
          type: integer
        winPercentage:
          type: number
        lossPercentage:
          type: number
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````