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

# 查詢全部永續合約

> 查詢目前結算幣種下的全部永續合約資訊

該介面用於查詢目前結算幣種下可用的全部永續合約資訊。

> [!NOTE]
>
> 該介面為公開介面，不需要 API Key 認證。


## OpenAPI

````yaml openapi/perpdex-zh-TW.yaml GET /dex_futures/{settle}/contracts
openapi: 3.0.3
info:
  title: DexBuilder PerpDEX API
  version: 1.0.0
  description: DexBuilder PerpDEX REST API。
servers:
  - url: https://api.dexbuilder.com/api/v1
    description: DexBuilder PerpDEX REST API
security:
  - DexBuilderKey: []
    DexBuilderTimestamp: []
    DexBuilderSignature: []
tags:
  - name: 行情
    description: 永續合約公開行情與市場資料
  - name: 風險資料
    description: 風險限額與市場強平資料
  - name: 帳戶
    description: 帳戶與費率
  - name: 持倉
    description: 持倉查詢與管理
  - name: 訂單
    description: 訂單、成交與批量交易
paths:
  /dex_futures/{settle}/contracts:
    get:
      tags:
        - 行情
      summary: 查詢全部永續合約
      description: 查詢目前結算幣種下的全部永續合約資訊。
      operationId: listPerpContracts
      parameters:
        - $ref: '#/components/parameters/Settle'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          description: 查詢成功
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Contract'
      security: []
components:
  parameters:
    Settle:
      name: settle
      in: path
      required: true
      description: 結算幣種
      schema:
        type: string
        enum:
          - usdt
      example: usdt
    Limit:
      name: limit
      in: query
      required: false
      description: 單次回傳的最大記錄數量
      schema:
        type: integer
    Offset:
      name: offset
      in: query
      required: false
      description: 清單偏移量，從 0 開始
      schema:
        type: integer
  schemas:
    Contract:
      type: object
      description: 永續合約資訊
      properties:
        name:
          type: string
          description: 合約名稱
          example: BTC_USDT
        type:
          type: string
          description: 合約類型
          enum:
            - inverse
            - direct
        quanto_multiplier:
          type: string
          description: 合約乘數
        leverage_min:
          type: string
          description: 最小槓桿
        leverage_max:
          type: string
          description: 最大槓桿
        maintenance_rate:
          type: string
          description: 維持保證金率
        order_price_round:
          type: string
          description: 價格精度
        order_size_min:
          type: string
          description: 最小下單張數
        order_size_max:
          type: string
          description: 最大下單張數
        status:
          type: string
          description: 合約狀態
        mark_price:
          type: string
          description: 標記價格
        index_price:
          type: string
          description: 指數價格
        funding_rate:
          type: string
          description: 目前資金費率
        funding_next_apply:
          type: integer
          format: int64
          description: 下次資金費率結算時間
        market_order_slip_ratio:
          type: string
          description: 市價單最大滑點比例
      additionalProperties: true
  securitySchemes:
    DexBuilderKey:
      type: apiKey
      in: header
      name: KEY
      description: DexBuilder API Key
    DexBuilderTimestamp:
      type: apiKey
      in: header
      name: Timestamp
      description: Unix 時間戳（秒），與目前時間差不得超過 60 秒
    DexBuilderSignature:
      type: apiKey
      in: header
      name: SIGN
      description: 使用 API Secret 對簽名字串執行 HMAC-SHA512 後的十六進制簽名

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.