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

# Get perp market statistics

> Returns 24h/7d/30d trading volume and open interest (long/short/total).



## OpenAPI

````yaml /api-reference/openapi/perp-api-v1.yaml get /main/info
openapi: 3.0.3
info:
  title: Raydium Perps API V1
  version: 1.0.0
  description: >
    Configuration and metadata service for Raydium Perpetual Futures. This API
    provides frontend configuration, asset availability, regional restrictions,
    and RPC endpoints. Order placement is delegated to Orderly Network's API.


    All endpoints return a standard envelope:

    - **Success**: `{ id: string, success: true, data: {...} }`

    - **Error**: `{ id: string, success: false, msg: string }`
  contact:
    name: Raydium
    url: https://raydium.io
servers:
  - url: https://api-perp-v1.raydium.io
    description: Production
security: []
tags:
  - name: Main
    description: Core service information (version, RPCs, stats, region check).
  - name: Pool
    description: Perp market pool configuration.
  - name: Campaign
    description: Campaign and leaderboard data.
  - name: Share
    description: Position and P&L sharing endpoints.
paths:
  /main/info:
    get:
      tags:
        - Main
      summary: Get perp market statistics
      description: Returns 24h/7d/30d trading volume and open interest (long/short/total).
      operationId: getMarketInfo
      responses:
        '200':
          description: Market info retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketInfoResponse'
components:
  schemas:
    MarketInfoResponse:
      type: object
      properties:
        id:
          type: string
        success:
          type: boolean
        data:
          type: object
          properties:
            volume:
              type: object
              properties:
                24h:
                  type: number
                  description: 24-hour trading volume.
                7d:
                  type: number
                  description: 7-day trading volume.
                30d:
                  type: number
                  description: 30-day trading volume.
            openInterest:
              type: object
              properties:
                long:
                  type: number
                  description: Total long open interest.
                short:
                  type: number
                  description: Total short open interest.
                all:
                  type: number
                  description: Combined open interest.

````