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:
- Always load first:
references/openapi/_shared.md — env detection, credentials, API call method (via helper script)
- Then load based on query type:
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
- 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
1---2name: gate-dex-market3description: 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 price', 'token K-line', 'holder analysis'. Do NOT use for swaps or wallet auth — use gate-dex-trade or gate-dex-wallet.4---56# Gate DEX Market78> **Pure Routing Layer** — READ-ONLY data queries only. Never executes transactions. All specifications in `references/`.910## General Rules1112⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.13Do NOT select or call any tool until all rules are read. These rules have the highest priority.14→ Read [gate-runtime-rules.md](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md)1516**Trigger Scenarios**: Use when the user wants to **look up or analyze** market data without executing any transaction:17- Price lookup: "what is the price of ETH", "check SOL price", "price of 0x1234..."18- Charts: "show K-line", "candlestick chart", "price trend"19- Rankings: "top gainers", "trending tokens", "token rankings"20- Security: "is this token safe", "security audit", "honeypot check", "risk analysis"21- Discovery: "new tokens", "newly listed", "holder analysis", "whale tracking"22- Volume: "trading volume", "buy-sell pressure", "liquidity events"232425---2627## MCP Dependencies2829### Required MCP Servers30| MCP Server | Status |31|------------|--------|32| Gate-Dex | ✅ Required |3334### MCP Tools Used3536**Query Operations (Read-only)**3738- dex_market_get_kline39- dex_token_get_coin_info40- dex_token_ranking41- dex_token_get_risk_info42- dex_token_list_swap_tokens43- dex_token_list_cross_chain_bridge_tokens4445### Authentication46- API Key Required: No for MCP market queries47- OAuth `mcp_token` Required: No for MCP market queries48- 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.4950### Installation Check51- Required: Gate-Dex52- Install: Run installer skill for your IDE53 - Cursor: `gate-mcp-cursor-installer`54 - Codex: `gate-mcp-codex-installer`55 - Claude: `gate-mcp-claude-installer`56 - OpenClaw: `gate-mcp-openclaw-installer`5758## Project convention — MCP only5960No OpenAPI unless user explicitly asks. MCP setup: see `gate-dex-trade/references/setup.md`.6162---6364**NOT this skill** (common misroutes):65- "quote for swapping X to Y" → `gate-dex-trade` (swap execution)66- "check my balance" → `gate-dex-wallet` (account query)67- "buy ETH" / "sell USDT" → `gate-dex-trade` (transaction execution)6869---7071## Routing Flow7273```text74User triggers market data query75 |76Step 1: OpenAPI only if user explicitly asks. Else MCP only.77Step 2: MCP discovery → success = MCP mode; fail = MCP setup guide (no OpenAPI fallback).78```7980---8182## Feature Matrix8384| Feature | MCP | OpenAPI | Notes |85|---------|-----|---------|-------|86| K-line / Candlestick | Yes | Yes | |87| Token basic info | Yes | Yes | |88| Token rankings | Yes | Yes | |89| Security risk audit | Yes | Yes | |90| Tradable token list | Yes | Yes | |91| Cross-chain bridge tokens | Yes | No | MCP only |92| Holder analysis (Top N) | No | Yes | OpenAPI only |93| New token discovery | No | Yes | OpenAPI only |94| Liquidity events (Rug Pull) | No | Yes | OpenAPI only |95| Volume stats (multi-period) | No | Yes | OpenAPI only |9697---9899## Mode Dispatch100101### MCP Mode102103**Read and strictly follow** [`references/mcp.md`](./references/mcp.md), execute according to its complete workflow.104105Includes: 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.106107### OpenAPI Mode (Progressive Loading)108109Explicit user request only. Load files progressively:1101111. **Always load first**: [`references/openapi/_shared.md`](./references/openapi/_shared.md) — env detection, credentials, API call method (via helper script)1122. **Then load based on query type**:113114| Query Type | Load File |115|-----------|-----------|116| Token info, rankings, new tokens, security, holders | [`openapi/token-data.md`](./references/openapi/token-data.md) |117| Volume stats, K-line, liquidity events | [`openapi/market-data.md`](./references/openapi/market-data.md) |118119> Legacy monolithic file preserved at [`references/openapi.md`](./references/openapi.md) for backward compatibility.120121---122123## Supported Chains124125Actual supported chains are determined by runtime API/Resource returns:126- **MCP Mode**: determined by MCP tool responses for the given `chain` argument127- **OpenAPI Mode**: chain parameter in request128129Common chains: eth, bsc, polygon, arbitrum, optimism, avax, base, sol.130131---132133## Security Rules1341351. **Data objectivity**: Present prices and rankings objectively, no investment advice1362. **Risk warnings**: Clearly remind users to judge investment risks themselves when showing security audits1373. **Credential security**: Follow §3 of [gate-runtime-rules.md](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md) for auth/credential handling1384. **Read-only**: All operations are data queries, no on-chain write operations