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)
- - dexmarketgetkline
- dextokengetcoininfo
- dextokenranking
- dextokengetriskinfo
- dextokenlistswaptokens
- dextokenlistcrosschainbridge_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: INLINECODE5
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
CODEBLOCK0
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 (dexmarketgetkline, dextokengetcoininfo, dextokenranking, dextokengetriskinfo, dextokenlistswaptokens, dextokenlistcrosschainbridge_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) - 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
- Risk warnings: Clearly remind users to judge investment risks themselves when showing security audits
- Credential security: Follow §3 of gate-runtime-rules.md for auth/credential handling
- Read-only: All operations are data queries, no on-chain write operations
Gate DEX 市场
纯路由层 — 仅限只读数据查询。绝不执行交易。所有规范见 references/。
通用规则
⚠️ 停止 — 在继续之前,您必须阅读并严格遵守共享运行时规则。
在阅读完所有规则之前,请勿选择或调用任何工具。这些规则具有最高优先级。
→ 阅读 gate-runtime-rules.md
触发场景:当用户希望查询或分析市场数据但不执行任何交易时使用:
- - 价格查询:ETH 的价格是多少、查看 SOL 价格、0x1234... 的价格
- 图表:显示 K 线、蜡烛图、价格趋势
- 排名:涨幅榜、热门代币、代币排名
- 安全:这个代币安全吗、安全审计、蜜罐检测、风险分析
- 发现:新代币、新上线、持仓分析、巨鲸追踪
- 成交量:交易量、买卖压力、流动性事件
MCP 依赖
必需的 MCP 服务器
使用的 MCP 工具
查询操作(只读)
- - dexmarketgetkline
- dextokengetcoininfo
- dextokenranking
- dextokengetriskinfo
- dextokenlistswaptokens
- dextokenlistcrosschainbridge_tokens
认证
- - API 密钥要求:MCP 市场查询不需要
- OAuth mcp_token 要求:MCP 市场查询不需要
- 注意:此技能为只读。在 MCP 模式下,市场数据工具无需认证即可调用。OpenAPI 模式有其自己的凭证模型,仅在用户明确要求时使用。
安装检查
- - 必需:Gate-Dex
- 安装:为您的 IDE 运行安装程序技能
- Cursor:gate-mcp-cursor-installer
- Codex:gate-mcp-codex-installer
- Claude:gate-mcp-claude-installer
- OpenClaw:gate-mcp-openclaw-installer
项目约定 — 仅限 MCP
除非用户明确要求,否则不使用 OpenAPI。MCP 设置:见 gate-dex-trade/references/setup.md。
非此技能(常见误路由):
- - 将 X 兑换为 Y 的报价 → gate-dex-trade(兑换执行)
- 查看我的余额 → gate-dex-wallet(账户查询)
- 购买 ETH / 出售 USDT → gate-dex-trade(交易执行)
路由流程
text
用户触发市场数据查询
|
步骤 1:仅当用户明确要求时使用 OpenAPI。否则仅使用 MCP。
步骤 2:MCP 发现 → 成功 = MCP 模式;失败 = MCP 设置指南(无 OpenAPI 回退)。
功能矩阵
| 功能 | MCP | OpenAPI | 备注 |
|---|
| K 线 / 蜡烛图 | 是 | 是 | |
| 代币基本信息 |
是 | 是 | |
| 代币排名 | 是 | 是 | |
| 安全风险审计 | 是 | 是 | |
| 可交易代币列表 | 是 | 是 | |
| 跨链桥代币 | 是 | 否 | 仅限 MCP |
| 持仓分析(前 N 名) | 否 | 是 | 仅限 OpenAPI |
| 新代币发现 | 否 | 是 | 仅限 OpenAPI |
| 流动性事件(Rug Pull) | 否 | 是 | 仅限 OpenAPI |
| 成交量统计(多周期) | 否 | 是 | 仅限 OpenAPI |
模式调度
MCP 模式
阅读并严格遵守 references/mcp.md,按照其完整工作流程执行。
包括:连接检测、6 个市场数据工具(dexmarketgetkline、dextokengetcoininfo、dextokenranking、dextokengetriskinfo、dextokenlistswaptokens、dextokenlistcrosschainbridge_tokens),市场查询无需认证。
OpenAPI 模式(渐进加载)
仅限用户明确请求。逐步加载文件:
- 1. 始终先加载:references/openapi/_shared.md — 环境检测、凭证、API 调用方法(通过辅助脚本)
- 然后根据查询类型加载:
openapi/market-data.md |
为向后兼容,保留旧版单体文件于 references/openapi.md。
支持的链
实际支持的链由运行时 API/资源返回决定:
- - MCP 模式:由给定 chain 参数的 MCP 工具响应决定
- OpenAPI 模式:请求中的链参数
常见链:eth、bsc、polygon、arbitrum、optimism、avax、base、sol。
安全规则
- 1. 数据客观性:客观呈现价格和排名,不提供投资建议
- 风险警告:在展示安全审计时,明确提醒用户自行判断投资风险
- 凭证安全:遵循 gate-runtime-rules.md 第 3 节处理认证/凭证
- 只读:所有操作均为数据查询,无链上写入操作