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

# Best bid/offer history

> Best bid and offer aggregated from every top-of-book update: mid OHLC, min/avg/max spread in bps and average sizes at the touch, per bucket. Intervals: `1m` (max 7 days), `1h` (max 180 days), `1d` (max 730 days). Available for April 2024 to February 2026 (archive of every top-of-book update); not yet extended past February 2026.



## OpenAPI

````yaml /api-reference/openapi.json get /market/bbo/{coin}
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.
  - name: Market history
    description: >-
      Historical Hyperliquid market microstructure: best bid/offer aggregates
      and spread statistics (April 2024 to February 2026), and the order book
      reconstructed minute by minute: April 2024 to February 2026 from our
      archive (top ~20 levels per side) and, since 23 September 2026, the full
      order book replayed from our own node. Served from the EU region.
paths:
  /market/bbo/{coin}:
    get:
      tags:
        - Market history
      summary: Best bid/offer history
      description: >-
        Best bid and offer aggregated from every top-of-book update: mid OHLC,
        min/avg/max spread in bps and average sizes at the touch, per bucket.
        Intervals: `1m` (max 7 days), `1h` (max 180 days), `1d` (max 730 days).
        Available for April 2024 to February 2026 (archive of every top-of-book
        update); not yet extended past February 2026.
      parameters:
        - name: coin
          in: path
          description: Coin symbol (e.g. BTC, @107 for a spot pair, xyz:TSLA for HIP-3)
          schema:
            type: string
          required: true
        - name: start_time
          in: query
          description: Start time (ISO UTC)
          schema:
            type: string
            format: date-time
          required: true
        - name: end_time
          in: query
          description: End time (ISO UTC); default = start + max window
          schema:
            type: string
            format: date-time
        - name: interval
          in: query
          description: 'Bucket: 1m (max 7 days), 1h (max 180 days), 1d (max 730 days)'
          schema:
            type: string
            default: 1m
            enum:
              - 1m
              - 1h
              - 1d
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
              example:
                success: true
                message: 24 1h buckets for BTC
                data:
                  - time: '2025-06-01T00:00:00'
                    mid_open: 104584.5
                    mid_high: 104633.5
                    mid_low: 104316.5
                    mid_close: 104441.5
                    spread_bps_min: 0.0956
                    spread_bps_avg: 0.1147
                    spread_bps_max: 3.6413
                    bid_sz_avg: 2.658646
                    ask_sz_avg: 4.973857
                    updates: 17231
                total_count: 24
                execution_time_ms: 109.25
                next_cursor: null
                has_more: null
        '400':
          description: >-
            Invalid window or parameter (for example a window larger than the
            interval allows)
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.

````