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

# Lấy thống kê thị trường perp

> Trả về khối lượng giao dịch và lãi suất mở cửa 24h/7d/30d.



## OpenAPI

````yaml /vi/api-reference/openapi/perp-api-v1.yaml get /main/info
openapi: 3.0.3
info:
  title: API Perp Raydium V1
  version: 1.0.0
  description: >
    Dịch vụ cấu hình và siêu dữ liệu cho Raydium Perpetual Futures. API này cung
    cấp cấu hình giao diện, tính khả dụng tài sản, hạn chế khu vực và các điểm
    cuối RPC. Việc đặt lệnh được ủy thác cho API của Orderly Network.


    Tất cả các điểm cuối trả về một phong bì tiêu chuẩn:

    - **Thành công**: `{ id: string, success: true, data: {...} }`

    - **Lỗi**: `{ 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: Thông tin dịch vụ cơ bản (phiên bản, RPC, thống kê, kiểm tra khu vực).
  - name: Pool
    description: Cấu hình bể perp market.
  - name: Campaign
    description: Dữ liệu chiến dịch và bảng xếp hạng.
  - name: Share
    description: Điểm cuối chia sẻ vị trí và P&L.
paths:
  /main/info:
    get:
      tags:
        - Main
      summary: Lấy thống kê thị trường perp
      description: Trả về khối lượng giao dịch và lãi suất mở cửa 24h/7d/30d.
      operationId: getMarketInfo
      responses:
        '200':
          description: Thông tin thị trường đã lấy.
          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: Khối lượng giao dịch 24 giờ.
                7d:
                  type: number
                  description: Khối lượng giao dịch 7 ngày.
                30d:
                  type: number
                  description: Khối lượng giao dịch 30 ngày.
            openInterest:
              type: object
              properties:
                long:
                  type: number
                  description: Tổng lãi suất mở cửa long.
                short:
                  type: number
                  description: Tổng lãi suất mở cửa short.
                all:
                  type: number
                  description: Lãi suất mở cửa kết hợp.

````