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

# Perp markets

> All perp markets of one dex, with live prices, funding, open interest and volume.



## OpenAPI

````yaml /data-api/openapi.json get /v1/markets
openapi: 3.1.0
info:
  title: Hyperdash Data API
  version: v1
  description: >-
    Hyperliquid data from Hyperdash's own nodes and stored datasets; requests
    never call Hyperliquid's public API. Every response reports the credits it
    cost.
servers:
  - url: https://data.hyperdash.com
security: []
tags:
  - name: Accounts
  - name: Async jobs
  - name: Builders
  - name: Cohorts
  - name: HIP-3 dexes
  - name: Leaderboards
  - name: Lending
  - name: Liquidations
  - name: Markets
  - name: 'Markets: analytics'
  - name: 'Markets: funding'
  - name: 'Markets: liquidation and stop levels'
  - name: 'Markets: open interest and positioning'
  - name: 'Markets: order book'
  - name: 'Markets: prices and candles'
  - name: 'Markets: queue priority'
  - name: 'Markets: trades and flow'
  - name: 'Markets: TWAPs'
  - name: Network
  - name: Outcomes
  - name: Positions
  - name: Referrals
  - name: Snapshots
  - name: Spot
  - name: Staking
  - name: Traders
  - name: Vaults
paths:
  /v1/markets:
    get:
      tags:
        - Markets
      summary: Perp markets
      description: >-
        All perp markets of one dex, with live prices, funding, open interest
        and volume. The default is the core exchange.


        **HIP-3 dexes**

        - HIP-3 dexes are computed by Hyperdash from its own nodes.

        - `mark_px` there is Hyperdash's estimate, flagged by
        `mark_px_estimated`. It is usually within 0.05% of the exchange's mark,
        but it can stay at the oracle and differ by about 1% on a market trading
        away from it.

        - The predicted `funding` is `null` until Hyperdash's computation is
        verified against the exchange's samples, flagged by
        `funding_unverified`. `last_settled_funding` carries the rate settled at
        the last hour.


        **Credits:** 10 per request + 5 per node read.


        **Scope:** `markets:read`
      operationId: listMarkets
      parameters:
        - name: dex
          in: query
          required: false
          description: Builder dex, for example `xyz`. Leave it out for the core exchange.
          schema:
            type: string
      responses:
        '200':
          description: OK
          headers:
            X-Credits-Charged:
              schema:
                type: integer
            X-Credit-Price-Version:
              schema:
                type: integer
            X-Request-Id:
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - has_more
                  - next_cursor
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        coin:
                          type: string
                          description: >-
                            Market. HIP-3 markets are prefixed, for example
                            `xyz:TSLA`.
                        sz_decimals:
                          type: integer
                          description: Size decimals.
                        max_leverage:
                          type: integer
                          description: Max leverage.
                        mark_px:
                          type:
                            - string
                            - 'null'
                          description: Mark price. Decimal string.
                        oracle_px:
                          type:
                            - string
                            - 'null'
                          description: Oracle price. Decimal string.
                        mid_px:
                          type:
                            - string
                            - 'null'
                          description: Book mid. Decimal string.
                        funding:
                          type:
                            - string
                            - 'null'
                          description: Current hourly funding rate. Decimal string.
                        premium:
                          type:
                            - string
                            - 'null'
                          description: Premium. Decimal string.
                        open_interest:
                          type:
                            - string
                            - 'null'
                          description: Open interest, in base units. Decimal string.
                        prev_day_px:
                          type:
                            - string
                            - 'null'
                          description: Price 24 hours ago. Decimal string.
                        day_ntl_vlm:
                          type:
                            - string
                            - 'null'
                          description: 24-hour notional volume, in USD. Decimal string.
                        day_base_vlm:
                          type:
                            - string
                            - 'null'
                          description: 24-hour base volume. Decimal string.
                        impact_bid_px:
                          type:
                            - string
                            - 'null'
                          description: Impact bid. Decimal string.
                        impact_ask_px:
                          type:
                            - string
                            - 'null'
                          description: Impact ask. Decimal string.
                        is_delisted:
                          type: boolean
                          description: Delisted.
                        margin_table_id:
                          type:
                            - integer
                            - 'null'
                          description: Margin table. See `/v1/markets/margin-tables`.
                        only_isolated:
                          type: boolean
                          description: Isolated margin only, no cross.
                        margin_mode:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Margin mode the node sets on restricted markets, for
                            example `strictIsolated` or `noCross`. `null` means
                            normal.
                        growth_mode:
                          type:
                            - string
                            - 'null'
                          description: >-
                            HIP-3 growth mode, `enabled` or `disabled`. `null`
                            on the core exchange.
                        deployer_fee_scale:
                          type:
                            - string
                            - 'null'
                          description: >-
                            HIP-3 deployer fee scale, which multiplies the
                            deployer's fee share. `null` on the core exchange.
                            Decimal string.
                        last_fee_scale_change_time:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            For HIP-3, the last change of the deployer fee
                            scale, in epoch milliseconds.
                        mark_px_estimated:
                          type: boolean
                          description: >-
                            `true` when Hyperdash estimates this mark itself
                            rather than reading the exchange's mark, on some
                            HIP-3 markets. `false` means not flagged.
                        funding_unverified:
                          type: boolean
                          description: >-
                            `true` when `funding`, the predicted rate, is `null`
                            because Hyperdash computes it itself and has not
                            verified it against the exchange's own samples.
                            Today that is every live HIP-3 market, plus core
                            markets whose premium rule is not reproduced yet,
                            for example `XTEN`. See `last_settled_funding` for
                            the rate settled at the last hour. `false` means not
                            flagged.
                        prev_day_px_seeded:
                          type: boolean
                          description: >-
                            `true` when `prev_day_px` comes from a one-time
                            seed: the market had no trade in Hyperdash's history
                            window. `false` means not flagged.
                        volume_inexact:
                          type: boolean
                          description: >-
                            `true` when the 24-hour volumes are approximate.
                            `false` means not flagged, which is no accuracy
                            guarantee.
                        last_settled_funding:
                          type:
                            - string
                            - 'null'
                          description: >-
                            For HIP-3, when Hyperdash computes the context
                            itself, the last settled hourly funding rate, not
                            the predicted `funding`. `null` otherwise. Decimal
                            string.
                        last_settled_funding_time:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Time of `last_settled_funding`, in epoch
                            milliseconds. `null` when not set.
                        collateral_token:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Collateral token of the dex, as a spot token index.
                            `0` is USDC.
                        at_oi_cap:
                          type: boolean
                          description: >-
                            At its open-interest cap, where new positions only
                            reduce.
                    description: Result rows.
                  has_more:
                    type: boolean
                    description: '`true` when another page follows.'
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Cursor for the next page, passed as `cursor`. `null` on
                      the last page.
                  meta:
                    type: object
                    description: >-
                      Response metadata. Its keys depend on the endpoint and are
                      described above.
        '400':
          description: 'Invalid parameter (also: a request body that is not valid JSON)'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Invalid, expired or revoked key
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Scope, plan, history or credit limit
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Price version changed, or a cursor's snapshot expired
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: >-
            Rate limited (Retry-After; free): request rate, concurrent requests
            (a request counts one slot per 1,000 rows it can return), or this
            server busy with your workspace's requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '502':
          description: Upstream data source failed (free; retry later)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: Backend at capacity or temporarily unavailable (Retry-After)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '504':
          description: Upstream data source timed out (free; retry later)
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - bearer: []
      x-codeSamples:
        - lang: curl
          source: >-
            curl -H "Authorization: Bearer $HYPERDASH_API_KEY"
            'https://data.hyperdash.com/v1/markets'
components:
  schemas:
    Problem:
      type: object
      required:
        - type
        - title
        - status
        - code
        - request_id
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        code:
          type: string
        detail:
          type: string
        hint:
          type: string
        request_id:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: Your API key, sent as `Bearer hdk_sk_live_v1_…`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.