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

# List markets

> Returns the market registry, optionally filtered by asset class. The registry is the single source of truth for symbols, oracle feeds, and leverage caps.



## OpenAPI

````yaml /openapi.json get /api/v2/markets
openapi: 3.1.0
info:
  title: QuantDesk API
  version: 2.0.0
  description: >-
    Public HTTP API for the QuantDesk perpetual DEX gateway. Endpoints are
    grouped by market data, unified portfolio state, oracle pricing, social
    surfaces, backtesting, and reference data. Field-level truth for on-chain
    accounts lives in the SDK; this reference documents the REST gateway
    surface.


    Authenticated routes accept a Bearer JWT obtained from the wallet session
    flow described in the Authentication guide.
  contact:
    name: QuantDesk Support
    url: https://docs.quantdesk.app
    email: support@quantdesk.app
  license:
    name: MIT
servers:
  - url: https://api.quantdesk.app
    description: Production gateway
security: []
tags:
  - name: Markets
    description: Market registry, metadata, and crankless orderbook depth.
  - name: Oracle
    description: Price feeds sourced from the Pyth oracle network.
  - name: Portfolio
    description: Unified portfolio state aggregated from on-chain accounts.
  - name: Data
    description: Authoritative market statistics and historical OHLCV candles.
  - name: Social
    description: Leaderboard and verified proof (flex) cards.
  - name: Backtesting
    description: Strategy simulation lifecycle and dataset catalog.
  - name: Referrals
    description: Referral validation before on-chain assignment.
paths:
  /api/v2/markets:
    get:
      tags:
        - Markets
      summary: List markets
      description: >-
        Returns the market registry, optionally filtered by asset class. The
        registry is the single source of truth for symbols, oracle feeds, and
        leverage caps.
      operationId: listMarkets
      parameters:
        - name: asset_class
          in: query
          required: false
          description: Filter markets by asset class.
          schema:
            type: string
            enum:
              - crypto
              - index
      responses:
        '200':
          description: Market list
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Market'
components:
  schemas:
    Market:
      type: object
      properties:
        symbol:
          type: string
          example: SOL-PERP
        base_asset:
          type: string
          example: SOL
        quote_asset:
          type: string
          example: USD
        asset_class:
          type: string
          example: crypto
        max_leverage:
          type: number
          example: 50
        is_active:
          type: boolean
          example: true
        oracle_feed:
          type: string
          example: pyth:SOL/USD

````