← 返回 Skills 市场
gate-exchange

Gate DEX Market

作者 Gate · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ⚠ suspicious
323
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install gate-dex-market
功能描述
Gate DEX read-only market data skill. Use when the user asks for prices, K-lines, rankings, holders, or liquidity without signing a tx. Triggers on 'DEX pric...
使用说明 (SKILL.md)

Gate DEX Market

Pure Routing Layer — READ-ONLY data queries only. Never executes transactions. All specifications in references/.

General Rules

⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding. Do NOT select or call any tool until all rules are read. These rules have the highest priority. → Read gate-runtime-rules.md

Trigger Scenarios: Use when the user wants to look up or analyze market data without executing any transaction:

  • Price lookup: "what is the price of ETH", "check SOL price", "price of 0x1234..."
  • Charts: "show K-line", "candlestick chart", "price trend"
  • Rankings: "top gainers", "trending tokens", "token rankings"
  • Security: "is this token safe", "security audit", "honeypot check", "risk analysis"
  • Discovery: "new tokens", "newly listed", "holder analysis", "whale tracking"
  • Volume: "trading volume", "buy-sell pressure", "liquidity events"

MCP Dependencies

Required MCP Servers

MCP Server Status
Gate-Dex ✅ Required

MCP Tools Used

Query Operations (Read-only)

  • dex_market_get_kline
  • dex_token_get_coin_info
  • dex_token_ranking
  • dex_token_get_risk_info
  • dex_token_list_swap_tokens
  • dex_token_list_cross_chain_bridge_tokens

Authentication

  • API Key Required: No for MCP market queries
  • OAuth mcp_token Required: No for MCP market queries
  • Note: This skill is read-only. In MCP mode, market-data tools can be called without authentication. OpenAPI mode has its own credential model and is only used when the user explicitly requests it.

Installation Check

  • Required: Gate-Dex
  • Install: Run installer skill for your IDE
    • Cursor: gate-mcp-cursor-installer
    • Codex: gate-mcp-codex-installer
    • Claude: gate-mcp-claude-installer
    • OpenClaw: gate-mcp-openclaw-installer

Project convention — MCP only

No OpenAPI unless user explicitly asks. MCP setup: see gate-dex-trade/references/setup.md.


NOT this skill (common misroutes):

  • "quote for swapping X to Y" → gate-dex-trade (swap execution)
  • "check my balance" → gate-dex-wallet (account query)
  • "buy ETH" / "sell USDT" → gate-dex-trade (transaction execution)

Routing Flow

User triggers market data query
  |
Step 1: OpenAPI only if user explicitly asks. Else MCP only.
Step 2: MCP discovery → success = MCP mode; fail = MCP setup guide (no OpenAPI fallback).

Feature Matrix

Feature MCP OpenAPI Notes
K-line / Candlestick Yes Yes
Token basic info Yes Yes
Token rankings Yes Yes
Security risk audit Yes Yes
Tradable token list Yes Yes
Cross-chain bridge tokens Yes No MCP only
Holder analysis (Top N) No Yes OpenAPI only
New token discovery No Yes OpenAPI only
Liquidity events (Rug Pull) No Yes OpenAPI only
Volume stats (multi-period) No Yes OpenAPI only

Mode Dispatch

MCP Mode

Read and strictly follow references/mcp.md, execute according to its complete workflow.

Includes: connection detection, 6 market data tools (dex_market_get_kline, dex_token_get_coin_info, dex_token_ranking, dex_token_get_risk_info, dex_token_list_swap_tokens, dex_token_list_cross_chain_bridge_tokens), no authentication required for market queries.

OpenAPI Mode (Progressive Loading)

Explicit user request only. Load files progressively:

  1. Always load first: references/openapi/_shared.md — env detection, credentials, API call method (via helper script)
  2. Then load based on query type:
Query Type Load File
Token info, rankings, new tokens, security, holders openapi/token-data.md
Volume stats, K-line, liquidity events openapi/market-data.md

Legacy monolithic file preserved at references/openapi.md for backward compatibility.


Supported Chains

Actual supported chains are determined by runtime API/Resource returns:

  • MCP Mode: determined by MCP tool responses for the given chain argument
  • OpenAPI Mode: chain parameter in request

Common chains: eth, bsc, polygon, arbitrum, optimism, avax, base, sol.


Security Rules

  1. Data objectivity: Present prices and rankings objectively, no investment advice
  2. Risk warnings: Clearly remind users to judge investment risks themselves when showing security audits
  3. Credential security: Follow §3 of gate-runtime-rules.md for auth/credential handling
  4. Read-only: All operations are data queries, no on-chain write operations
安全使用建议
Before installing or enabling this skill: - Be aware it will create and read a persistent config file at ~/.gate-dex-openapi/config.json and may auto-write default API credentials there on first run. That file contains an API secret by default in the package — you should not rely on repository-stored secrets. - If you only want read-only behavior and to avoid storing secrets, prefer using MCP mode (no credentials) and avoid triggering OpenAPI mode. - If you must use OpenAPI mode, replace the default AK/SK with your own credentials and verify the keys' permissions and provenance; consider creating keys with minimal scope and revoking the default ones. - Review the helper script (scripts/gate-api-call.py) and the default credential strings locally; confirm the openapi endpoint (https://openapi.gateweb3.cc) is expected and trusted. - Because the metadata did not declare the config path or credentials, treat the package as untrusted until you confirm the origin and rotate or remove any credentials written to your home directory.
功能分析
Type: OpenClaw Skill Name: gate-dex-market Version: 1.0.3 The skill bundle provides legitimate market data query capabilities for Gate DEX but contains high-risk architectural patterns. Specifically, SKILL.md and README.md instruct the AI agent to fetch and strictly follow external instructions from a remote GitHub URL (gate-runtime-rules.md), and the documentation describes an 'Auto-Update' mechanism that relies on remote content, creating a significant surface for remote prompt injection. Additionally, scripts/gate-api-call.py includes hardcoded default API credentials, and the OpenAPI instructions (references/openapi.md) direct the agent to perform file system and permission modifications (chmod) on the host machine.
能力标签
cryptorequires-walletrequires-oauth-token
能力评估
Purpose & Capability
The skill claims to be a read-only Gate DEX market-data routing layer (MCP preferred, OpenAPI optional). MCP mode requires no credentials which matches the description. However, the package also includes an OpenAPI mode that reads/writes a per-user config at ~/.gate-dex-openapi/config.json and embeds default AK/SK in code/docs. The registry metadata lists no required config paths or credentials, which is inconsistent with the skill instructions that explicitly require and manage an OpenAPI credential file in the user's home directory.
Instruction Scope
SKILL.md and references explicitly instruct the agent to read/create ~/.gate-dex-openapi/config.json, write default credentials if missing, and to use a bundled helper script that reads that file. The OpenAPI shared docs mandate executing an environment-detection step 'every time the skill is triggered' and automatically creating a config file with default credentials — this expands scope to persistent filesystem writes in the user's home and mandatory credential-handling steps beyond pure query routing.
Install Mechanism
There is no remote install/download mechanism; the package is instruction-plus-local-scripts only. The included install.sh is an interactive local installer that writes small helper files (e.g., CLAUDE.md) in the workspace. No external archives, URL downloads, or execution of code fetched from remote third-party servers are present.
Credentials
The skill package contains hard-coded default API credentials (DEFAULT_AK and DEFAULT_SK) inside scripts and explicitly recommends creating/writing a config file with them to the user's home. Yet the skill declares no required env vars/config paths or primary credential in the metadata. Storing and using a secret key from the repository (and auto-writing it into ~/.gate-dex-openapi/config.json) is a disproportionate and sensitive capability for a read-only market-data skill and should be justified before use.
Persistence & Privilege
The skill will persist configuration in the user's home directory (~/.gate-dex-openapi/config.json), potentially on first-run, and will read/write that file on subsequent invocations. It does not request 'always: true', but it does mandate an environment-detection step on every trigger and will create persistent files and helper docs in workspace/home. This persistent storage of credentials and mandatory runtime step increases the skill's long-term footprint.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gate-dex-market
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gate-dex-market 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Removed the file: references/README-openapi.md - No changes to functionality or interfaces; project structure cleanup only.
v1.0.2
- Clarified that MCP market-data lookups do not require authentication (API key or OAuth) in most cases. - Explicitly listed all six supported MCP market data tools. - Updated the description and instructions to emphasize read-only usage and correct routing. - Improved details on supported chains and credential handling for both MCP and OpenAPI modes. - Minor edits to trigger scenarios and usage notes for greater clarity.
v1.0.1
Version 1.0.1 — Expanded data sources and improved modular documentation. - Added MCP mode as the default for market data queries, with fallback to OpenAPI only upon explicit user request. - Introduced new reference documents for MCP and OpenAPI specs, improving clarity and maintainability. - Extended supported features: discovery of new tokens, holder analysis, liquidity events, and detailed volume stats (via OpenAPI). - Defined strict routing rules to prevent misdirection of transactional or wallet queries. - Enhanced security, authentication, and objective data display guidelines.
v1.0.0
Initial release of Gate DEX Market data skill. - Provides read-only token and market quotes from Gate DEX via OpenAPI (AK/SK authentication) - Auto-detects credential config and assists setup if missing - Supports token info, prices, rankings, security audit queries for multiple EVM and Solana chains - Intended to be called by trading and wallet-related skills for market data - Enforces credential security and strictly offers market data, not investment advice
元数据
Slug gate-dex-market
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Gate DEX Market 是什么?

Gate DEX read-only market data skill. Use when the user asks for prices, K-lines, rankings, holders, or liquidity without signing a tx. Triggers on 'DEX pric... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 323 次。

如何安装 Gate DEX Market?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gate-dex-market」即可一键安装,无需额外配置。

Gate DEX Market 是免费的吗?

是的,Gate DEX Market 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Gate DEX Market 支持哪些平台?

Gate DEX Market 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Gate DEX Market?

由 Gate(@gate-exchange)开发并维护,当前版本 v1.0.3。

💬 留言讨论