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

# Equity history

> Account value over time, from hourly on-chain account snapshots. Each point carries cash, open notional, unrealized PnL, account leverage and position count; `summary` adds the change over the window and its max drawdown.

`account_value` is the **perp** clearinghouse value — the same number Hyperliquid returns as `marginSummary.accountValue`. Spot balances and HIP-3 builder-dex positions are not included.

A point with `perp_account_empty: true` means the account held no position and no perp balance at that snapshot (a real 0, not missing data). Snapshot coverage starts **2026-09-05**.



## OpenAPI

````yaml /api-reference/openapi.json get /users/{user}/equity-history
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}/equity-history:
    get:
      tags:
        - Social Trading
      summary: Equity history
      description: >-
        Account value over time, from hourly on-chain account snapshots. Each
        point carries cash, open notional, unrealized PnL, account leverage and
        position count; `summary` adds the change over the window and its max
        drawdown.


        `account_value` is the **perp** clearinghouse value — the same number
        Hyperliquid returns as `marginSummary.accountValue`. Spot balances and
        HIP-3 builder-dex positions are not included.


        A point with `perp_account_empty: true` means the account held no
        position and no perp balance at that snapshot (a real 0, not missing
        data). Snapshot coverage starts **2026-09-05**.
      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 ending at request time.
          schema:
            type: string
            default: 7d
            enum:
              - 7d
              - 30d
              - 90d
              - all
        - name: interval
          in: query
          description: >-
            `1h` returns every snapshot; `1d` returns the last snapshot of each
            day.
          schema:
            type: string
            default: 1h
            enum:
              - 1h
              - 1d
        - 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)

````