> ## 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]
>
> 使用 Broker API Key 调用。此接口查询 Broker 配置，无需提供 `X-User-Wallet-Address`。 认证规则见[Broker API Key 与签名](https://dexbuilder.mintlify.site/api-reference/common/broker-authentication.md)。

## 使用说明

* `network` 必填，用于指定查询的网络；`asset` 可选。未提供 `asset` 时，响应中的对应字段为空字符串。


## OpenAPI

````yaml openapi/dexbuilder.yaml GET /api/v4/dexbuilder/dw_status
openapi: 3.0.3
info:
  title: DexBuilder 平台 Broker API
  version: 1.0.0
  description: DexBuilder 平台 Broker API，涵盖资产配置、用户、充值与提现能力。认证和用户钱包校验见本站统一网关说明。
servers:
  - url: https://api.dexbuilder.com
security: []
paths:
  /api/v4/dexbuilder/dw_status:
    get:
      tags:
        - 资产配置
      summary: 查询充提开关
      description: 查询指定资产与网络的充值/提现是否开启。
      operationId: getDexBuilderDwStatus
      parameters:
        - $ref: '#/components/parameters/AssetQuery'
        - $ref: '#/components/parameters/NetworkQuery'
      responses:
        '200':
          description: 查询成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeDwStatus'
        '401':
          $ref: '#/components/responses/GatewayUnauthorized'
        '403':
          $ref: '#/components/responses/ProjectAccessDenied'
      security:
        - BrokerAPIKey: []
          Timestamp: []
          Signature: []
components:
  parameters:
    AssetQuery:
      name: asset
      in: query
      required: false
      schema:
        type: string
      example: USDT
      description: 资产符号过滤，如 USDT
    NetworkQuery:
      name: network
      in: query
      required: true
      schema:
        type: string
      example: ethereum
      description: 网络标识，例如 ethereum、solana、arbitrum、bsc 或 base。查询充提开关时必填。
  schemas:
    EnvelopeDwStatus:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/DwStatus'
    EnvelopeBase:
      type: object
      properties:
        code:
          type: integer
          example: 0
          description: 业务码，`0` 表示成功
        message:
          type: string
          example: success
          description: 人类可读说明，成功时为 success
        reason:
          type: string
          description: 错误原因标识；成功时通常为空字符串
        trace_id:
          type: string
          description: 链路追踪 ID，排障时提供
    DwStatus:
      type: object
      properties:
        asset:
          type: string
          description: 资产符号
        network:
          type: string
          description: 网络标识
        deposit_enabled:
          type: boolean
          description: 充值开关
        withdraw_enabled:
          type: boolean
          description: 提现开关
    ErrorEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          required:
            - label
          properties:
            label:
              type: string
              description: 稳定的机器可读错误标识
            data:
              nullable: true
              description: 错误时一般为 null
  responses:
    GatewayUnauthorized:
      description: Broker API Key、签名或时间戳无效
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            invalidKey:
              summary: 无效 API Key
              value:
                label: INVALID_KEY
                message: Invalid key provided
                code: 401
                trace_id: abc123
            invalidSignature:
              summary: 签名错误
              value:
                label: INVALID_SIGNATURE
                message: Invalid signature
                code: 401
                trace_id: abc123
    ProjectAccessDenied:
      description: 项目未绑定或 Broker/API Key 不匹配
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            code: 40300801
            reason: P_DEX_BUILDER_IN_PROJECT_ACCESS_DENIED
            label: PROJECT_ACCESS_DENIED
            message: project access denied
            data: null
  securitySchemes:
    BrokerAPIKey:
      type: apiKey
      in: header
      name: KEY
      description: Broker API Key
    Timestamp:
      type: apiKey
      in: header
      name: Timestamp
      description: Unix 秒级时间戳
    Signature:
      type: apiKey
      in: header
      name: SIGN
      description: 使用 Broker Secret Key 生成的 HMAC-SHA512 十六进制签名

````

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