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

# Get market

> Full reference detail for a single market.

<Warning>
  **Alpha** — The Market Data API is in alpha. Schema and response format may change. To request access, [contact us](https://www.allium.so/contact) or reach out to your account manager.
</Warning>

Returns full reference metadata for a single market — tick size, contract size, and (for perps) the `perp` object with funding interval and max leverage.


## OpenAPI

````yaml _openapi/market-data-api.json GET /api/v1/markets/{market_id}
openapi: 3.1.0
info:
  title: Allium Market Data API
  version: 0.1.0
  description: >-
    Unified market data — reference, pricing, and perps primitives across
    trading venues. Alpha; schema may change.
servers:
  - url: https://api.allium.so
security:
  - APIKeyBearer: []
paths:
  /api/v1/markets/{market_id}:
    get:
      summary: Get market
      description: Full reference detail for a single market.
      parameters:
        - $ref: '#/components/parameters/MarketIdPath'
      responses:
        '200':
          description: The market object.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/MarketInfo'
                required:
                  - data
components:
  parameters:
    MarketIdPath:
      name: market_id
      in: path
      required: true
      description: Canonical market slug, {venue}:{instrument_type}:{pair}.
      schema:
        type: string
      example: hl:perp:BTC-USDC
  schemas:
    MarketInfo:
      type: object
      properties:
        market_id:
          type: string
          description: Canonical market slug, {venue}:{instrument_type}:{pair}.
          examples:
            - hl:perp:BTC-USDC
        venue:
          type: string
          examples:
            - hyperliquid
        instrument_type:
          type: string
          enum:
            - perp
            - spot
        base_asset:
          $ref: '#/components/schemas/DasidAsset'
        quote_asset:
          $ref: '#/components/schemas/DasidAsset'
        settlement:
          type: string
          description: Settlement asset symbol.
          examples:
            - USDC
        active:
          type: boolean
        tick_size:
          type: integer
          description: Number of price decimals.
        contract_size:
          type: integer
          description: Number of size decimals.
        perp:
          $ref: '#/components/schemas/PerpMarketInfo'
      required:
        - market_id
        - venue
        - instrument_type
        - base_asset
        - quote_asset
        - settlement
        - active
        - tick_size
        - contract_size
    DasidAsset:
      type: object
      properties:
        dasid:
          type: string
          description: Canonical Allium asset id.
          examples:
            - asset:bitcoin
        symbol:
          type: string
          description: Venue-native symbol.
          examples:
            - BTC
      required:
        - dasid
        - symbol
    PerpMarketInfo:
      type: object
      description: Perp-specific metadata. Present only when instrument_type is perp.
      properties:
        funding_interval:
          type: integer
          description: Seconds between funding periods (3600 on Hyperliquid).
          examples:
            - 3600
        max_leverage:
          type: integer
          description: Maximum leverage, when available.
          examples:
            - 40
      required:
        - funding_interval
  securitySchemes:
    APIKeyBearer:
      type: apiKey
      in: header
      name: X-API-KEY

````