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

# Batch performance

> Performance stats for **many wallets in one call**: the same fields as `GET /users/{user}/performance` (win rate, PnL, trade count, volume, average holding time, long/short ratio, fees, funding), one entry per submitted address in submission order, computed in a single query. Wallets with no trade in the window return zeros.

Up to **500 addresses** per call; typical latency 250–400 ms. `include_drawdown: true` adds `max_drawdown` measured on each wallet's realized-PnL curve (heavier: a few seconds for hundreds of very active wallets). The equity-based drawdown (`equity_max_drawdown_*`) is not computed in batch: use the per-wallet endpoint for it.

**Credits:** **3 credits per wallet** submitted: the same as calling the per-wallet endpoint once per address.



## OpenAPI

````yaml /api-reference/openapi.json post /users/batch/performance
openapi: 3.0.3
info:
  title: 'Hypedexer API: Indexed Data'
  version: 1.0.0
  description: >-
    API to query indexed Hyperliquid trading data.


    This API provides access to stored/indexed trading data:

    - **Fills**: Executed orders and fills (Spot-only or All = Spot + Perp)

    - **Analytics**: Aggregations and statistics based on indexed data

    - **Completed Trades**: Trade objects and their related fills

    - **Users**: User overviews, performance and activity

    - **Social Trading**: Per-trader equity curve, PnL calendar, account
    leverage and top trades

    - **Funding**: Funding rate history, user funding payments, predicted rates

    - **Liquidations**: Liquidation events with filters

    - **Overview**: Market dashboard metrics (volume, fees, traders, PnL)

    - **Spot**: Spot token metadata, pairs, and auctions

    - **TWAPs**: TWAP orders, execution stats and fills

    - **Vaults**: Vault details, summaries, equity, ledger


    > Note: No live streaming. Responses are computed from indexed data.
servers:
  - url: https://api.hypedexer.com
    description: Production, routed to the nearest region (EU or JP)
security:
  - ApiKeyAuth: []
tags:
  - name: Fills
    description: Fills endpoints.
  - name: Analytics
    description: Aggregations and stats.
  - name: Completed Trades
    description: Trades and fills.
  - name: Users
    description: User profiles.
  - name: Funding
    description: Funding rates and payments (HL-compatible).
  - name: Liquidations
    description: Liquidation events.
  - name: Overview
    description: Market dashboard metrics.
  - name: Spot
    description: Spot token metadata, pairs and auctions.
  - name: TWAPs
    description: TWAP orders, stats and fills.
  - name: Vaults
    description: Vault details, summaries, equity and ledger.
  - name: Social Trading
    description: >-
      Per-trader equity, PnL calendar, performance, account leverage and top
      trades.
paths:
  /users/batch/performance:
    post:
      tags:
        - Social Trading
      summary: Batch performance
      description: >-
        Performance stats for **many wallets in one call**: the same fields as
        `GET /users/{user}/performance` (win rate, PnL, trade count, volume,
        average holding time, long/short ratio, fees, funding), one entry per
        submitted address in submission order, computed in a single query.
        Wallets with no trade in the window return zeros.


        Up to **500 addresses** per call; typical latency 250–400 ms.
        `include_drawdown: true` adds `max_drawdown` measured on each wallet's
        realized-PnL curve (heavier: a few seconds for hundreds of very active
        wallets). The equity-based drawdown (`equity_max_drawdown_*`) is not
        computed in batch: use the per-wallet endpoint for it.


        **Credits:** **3 credits per wallet** submitted: the same as calling the
        per-wallet endpoint once per address.
      parameters:
        - name: X-API-Key
          in: header
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - users
              properties:
                users:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  maxItems: 500
                  description: >-
                    Wallet addresses (0x…, any case). Duplicates are ignored;
                    any invalid address returns 400.
                window:
                  type: string
                  default: 7d
                  enum:
                    - 7d
                    - 30d
                    - 90d
                    - all
                include_drawdown:
                  type: boolean
                  default: false
                  description: Also compute `max_drawdown` (realized-PnL curve) per wallet
            example:
              users:
                - 0x4e60e3a4…
                - 0xea0e878d…
              window: 30d
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                  total_count:
                    type: integer
                  execution_time_ms:
                    type: number
              example:
                success: true
                message: Batch performance (1 wallets, 30d)
                data:
                  - user: 0x4e60e3a4…
                    window: 30d
                    total_trades: 460582
                    wins: 233771
                    losses: 226811
                    win_rate: 0.507556
                    total_pnl: -36064.51385
                    volume: 2214905612.14
                    avg_holding_time_s: 41.2
                    longs: 230145
                    shorts: 230437
                    long_short_ratio: 0.9987
                    long_pct: 0.499683
                    avg_win: 12.41
                    avg_loss: 12.95
                    profit_factor: 0.9598
                    best_trade_pnl: 1810.2
                    worst_trade_pnl: -2255.7
                    avg_trade_size: 0.0421
                    total_fees: 121553.7
                    total_funding: -812.4
                    max_drawdown: 51475.222081
                    max_drawdown_basis: realized_pnl_curve
                total_count: 1
                execution_time_ms: 316.8
        '400':
          description: >-
            Invalid address(es), empty list, more than 500 addresses, or unknown
            window
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your Hypedexer API key. Create one in the console at
        https://app.hypedexer.com. `Authorization: Bearer <key>` and the
        `api_key` query parameter are accepted as well.

````