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

# Get all available markets

> Returns a list of all trading markets with their configuration details including
leverage limits, tick sizes, decimal precision, and current market mode (Open, ReduceOnly, CloseOnly).



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/markets
openapi: 3.1.0
info:
  title: Decibel Trading API
  description: >-
    RESTful API for Decibel. Provides read-only endpoints for market data,
    trading operations, positions, and analytics.
  contact:
    name: Decibel Team
    url: https://decibel.trade/
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.mainnet.aptoslabs.com/decibel
    description: Mainnet
  - url: https://api.testnet.aptoslabs.com/decibel
    description: Testnet
security:
  - bearerAuth: []
tags:
  - name: Market Data
    description: Market information and real-time data endpoints
  - name: User
    description: User information and account management
  - name: Trades
    description: Trading operations and history
  - name: Positions
    description: User position management
  - name: Orders
    description: Order management and history
  - name: TWAP
    description: Time-weighted average price orders
  - name: Bulk Orders
    description: Bulk order management
  - name: Vaults
    description: Vault operations and management
  - name: Analytics
    description: Analytics and performance metrics
  - name: Predeposit Rewards
    description: Season 0 predeposit USDC rewards
  - name: Referrals
    description: Referral code management and tracking
paths:
  /api/v1/markets:
    get:
      tags:
        - Market Data
      summary: Get all available markets
      description: >-
        Returns a list of all trading markets with their configuration details
        including

        leverage limits, tick sizes, decimal precision, and current market mode
        (Open, ReduceOnly, CloseOnly).
      operationId: handle_markets
      responses:
        '200':
          description: List of available markets
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MarketDto'
        '500':
          description: Database error
components:
  schemas:
    MarketDto:
      type: object
      required:
        - market_addr
        - market_name
        - sz_decimals
        - max_leverage
        - tick_size
        - min_size
        - lot_size
        - max_open_interest
        - px_decimals
        - mode
        - unrealized_pnl_haircut_bps
      properties:
        lot_size:
          type: integer
          format: int64
          minimum: 0
        market_addr:
          type: string
        market_name:
          type: string
        max_leverage:
          type: integer
          format: int32
          minimum: 0
        max_open_interest:
          type: number
          format: double
        min_size:
          type: integer
          format: int64
          minimum: 0
        mode:
          type: string
        px_decimals:
          type: integer
          format: int32
          minimum: 0
        sz_decimals:
          type: integer
          format: int32
          minimum: 0
        tick_size:
          type: integer
          format: int64
          minimum: 0
        unrealized_pnl_haircut_bps:
          type: integer
          format: int32
          description: >-
            Haircut for unrealized PnL when calculating withdrawable balance (in
            basis points, e.g., 1000 = 10%)
          minimum: 0
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from Geomi. See
        [Authentication](/api-reference/rest/authentication) for setup
        instructions.

````