> ## 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 contracts summary

> Returns a summary of all perpetual contracts traded on the exchange,



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/contracts
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: Account
    description: Account-specific endpoints and data
  - 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: Points
    description: Points-related account metrics
  - name: Trading Points
    description: Trading points endpoints
  - name: Trading Hz
    description: Trading Hz endpoints
  - name: Tier
    description: Tier information endpoints
  - name: Streaks
    description: User streak tracking endpoints
  - name: Predeposit Rewards
    description: Season 0 predeposit USDC rewards
  - name: Referrals
    description: Referral code management and tracking
  - name: Affiliates
    description: Affiliate code and earnings endpoints
paths:
  /api/v1/contracts:
    get:
      tags:
        - Market Data
      summary: Get contracts summary
      description: Returns a summary of all perpetual contracts traded on the exchange,
      operationId: handle_contracts
      responses:
        '200':
          description: Contracts summary
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractsResponse'
        '500':
          description: Database error
components:
  schemas:
    ContractsResponse:
      type: object
      description: Wrapper response matching the CoinGecko/CMC `/contracts` format.
      required:
        - contracts
      properties:
        contracts:
          type: array
          items:
            $ref: '#/components/schemas/ContractDto'
    ContractDto:
      type: object
      description: |-
        Per-market derivative contract summary for aggregator integration.
        All numeric values are serialized as strings per the CoinGecko/CMC spec.
      required:
        - contract_index
        - ticker_id
        - base_currency
        - target_currency
        - last_price
        - base_volume
        - target_volume
        - high
        - low
        - product_type
        - open_interest
        - open_interest_usd
        - index_price
        - index_currency
        - start_timestamp
        - end_timestamp
        - funding_rate
        - next_funding_rate
        - next_funding_rate_timestamp
      properties:
        base_currency:
          type: string
        base_volume:
          type: string
        contract_index:
          type: integer
          minimum: 0
        end_timestamp:
          type: string
        funding_rate:
          type: string
        high:
          type: string
        index_currency:
          type: string
        index_price:
          type: string
        last_price:
          type: string
        low:
          type: string
        next_funding_rate:
          type: string
        next_funding_rate_timestamp:
          type: string
        open_interest:
          type: string
        open_interest_usd:
          type: string
        product_type:
          type: string
        start_timestamp:
          type: string
        target_currency:
          type: string
        target_volume:
          type: string
        ticker_id:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from Geomi. See
        [Authentication](/api-reference/rest/authentication) for setup
        instructions.

````