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

# 取得 CLMM 動態費用設定

> 取得新 CLMM 池在傳入 `enableDynamicFee=true` 給 `CreateCustomizablePool` 時可選用的校準 `DynamicFeeConfig` 級別。每個條目包含各級別的參數（過濾週期、衰減週期、縮減因子、動態費用控制、最大波動累積器），用於控制波動率追蹤附加費。快取 60 秒。




## OpenAPI

````yaml /zh-Hant/api-reference/openapi/api-v3.yaml get /main/clmm-dynamic-config
openapi: 3.0.3
info:
  title: Raydium API v3
  version: 3.0.0
  description: >-
    Raydium API v3 提供 REST 端點，用於查詢 Solana 區塊鏈上的流動性池、mint 資訊、Farm 詳情、IDO
    池及鏈上元資料。適用於錢包、聚合器與交易者取得價格資訊、池資料及路由資訊。
servers:
  - url: https://api-v3.raydium.io
    description: 正式環境（Mainnet）
  - url: https://api-v3-devnet.raydium.io
    description: 開發環境（Devnet）
security: []
tags:
  - name: Main
    description: 鏈上資訊、TVL 及設定的核心 API 端點
  - name: Mint
    description: Token mint 資訊與定價
  - name: Pools
    description: 流動性池資訊、金鑰及歷史資料
  - name: Farms
    description: Farm 池資訊與金鑰
  - name: IDO
    description: IDO 池資訊與金鑰
paths:
  /main/clmm-dynamic-config:
    get:
      tags:
        - Main
      summary: 取得 CLMM 動態費用設定
      description: >
        取得新 CLMM 池在傳入 `enableDynamicFee=true` 給 `CreateCustomizablePool` 時可選用的校準
        `DynamicFeeConfig`
        級別。每個條目包含各級別的參數（過濾週期、衰減週期、縮減因子、動態費用控制、最大波動累積器），用於控制波動率追蹤附加費。快取 60 秒。
      operationId: getMainClmmDynamicConfig
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiResponse'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: DynamicFeeConfig PDA
                            index:
                              type: integer
                            filterPeriod:
                              type: integer
                              description: 秒；波動率在此時間窗口後衰減至零
                            decayPeriod:
                              type: integer
                              description: 秒；累積器衰減的完整半衰期
                            reductionFactor:
                              type: integer
                              description: 每步衰減分子（分母 = 10000）
                            maxFeeRateNumerator:
                              type: integer
                              description: 動態費用附加費上限（分母 = 1_000_000）
                            dynamicFeeControl:
                              type: integer
                              description: Tick 距離縮放分子（分母 = 100_000）
components:
  schemas:
    ApiResponse:
      type: object
      description: 通用回應封裝。`data` 欄位由各端點的回應 schema 透過 `allOf` 提供，因此不在基礎封裝中宣告。
      required:
        - id
        - success
      properties:
        id:
          type: string
          description: 請求 ID（UUID）
        success:
          type: boolean
          description: 請求是否成功
        msg:
          type: string
          description: 失敗時的錯誤訊息

````