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

# User performance

> Round-trip trade statistics over a rolling window: win rate, PnL, trade count, volume, average holding time and long/short ratio.

`max_drawdown` is measured on the cumulative realized-PnL curve of closed trades. When hourly account snapshots cover the window, `equity_max_drawdown_usd` / `equity_max_drawdown_pct` give the drawdown on real account value, and `equity_snapshots` says how many points backed it.

Round-trip trades are available from **2025-09-10**.



## OpenAPI

````yaml /api-reference/openapi.json get /users/{user}/performance
openapi: 3.0.3
info:
  title: HL Indexer 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: EU production
security: []
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/{user}/performance:
    get:
      tags:
        - Social Trading
      summary: User performance
      description: >-
        Round-trip trade statistics over a rolling window: win rate, PnL, trade
        count, volume, average holding time and long/short ratio.


        `max_drawdown` is measured on the cumulative realized-PnL curve of
        closed trades. When hourly account snapshots cover the window,
        `equity_max_drawdown_usd` / `equity_max_drawdown_pct` give the drawdown
        on real account value, and `equity_snapshots` says how many points
        backed it.


        Round-trip trades are available from **2025-09-10**.
      parameters:
        - name: user
          in: path
          required: true
          description: Trader address (0x + 40 hex, any case).
          schema:
            type: string
            example: '0x0000000000bdc2fd416def2d8688069052eb0f87'
        - name: window
          in: query
          description: Rolling window. Ignored when `start_time`/`end_time` are supplied.
          schema:
            type: string
            default: 7d
            enum:
              - 7d
              - 30d
              - 90d
              - all
        - name: start_time
          in: query
          schema:
            type: string
            format: date-time
        - name: end_time
          in: query
          schema:
            type: string
            format: date-time
        - name: X-API-Key
          in: header
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    default: true
                  message:
                    type: string
                    default: OK
                  data:
                    type: object
                  execution_time_ms:
                    type: number
        '400':
          description: Invalid user address (expected 0x + 40 hex)

````