> ## 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.

# 获取期货市场统计

> 返回 24h/7d/30d 交易量和未平仓头寸（多头/空头/总计）。



## OpenAPI

````yaml /zh/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: >
    Raydium 永续期货的配置和元数据服务。此 API 提供前端配置、资产可用性、地区限制和 RPC 端点。订单下单委托给 Orderly
    Network 的 API。


    所有端点均返回标准信封：

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

    - **错误**: `{ 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: 核心服务信息（版本、RPC、统计、地区检查）。
  - name: Pool
    description: 期货市场池配置。
  - name: Campaign
    description: 活动和排行榜数据。
  - name: Share
    description: 仓位和收益分享端点。
paths:
  /main/info:
    get:
      tags:
        - Main
      summary: 获取期货市场统计
      description: 返回 24h/7d/30d 交易量和未平仓头寸（多头/空头/总计）。
      operationId: getMarketInfo
      responses:
        '200':
          description: 市场信息已获取。
          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 小时交易量。
                7d:
                  type: number
                  description: 7 天交易量。
                30d:
                  type: number
                  description: 30 天交易量。
            openInterest:
              type: object
              properties:
                long:
                  type: number
                  description: 总多头未平仓头寸。
                short:
                  type: number
                  description: 总空头未平仓头寸。
                all:
                  type: number
                  description: 合并未平仓头寸。

````