gate-dex-market
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGate DEX Market
Gate DEX 市场
Market Data Skill — OpenAPI mode, AK/SK authentication for direct API calls
Trigger Scenarios: Use when users mention "quotes", "K-line", "prices", "token information", "rankings", "security audit", "market data", and other related operations.
市场数据 Skill — OpenAPI 模式,采用AK/SK认证直接调用API
触发场景:当用户提及“行情”、“K线”、“价格”、“代币信息”、“排名”、“安全审计”、“市场数据”等相关操作时使用。
🎯 Architecture
🎯 架构
| Mode | Connection Method | Advantages | Use Cases |
|---|---|---|---|
| ⚡ OpenAPI Mode | AK/SK direct calls | Strong independence, fast response | Market data queries, token information, security audits |
| 模式 | 连接方式 | 优势 | 适用场景 |
|---|---|---|---|
| ⚡ OpenAPI 模式 | AK/SK 直接调用 | 独立性强、响应速度快 | 市场数据查询、代币信息查询、安全审计 |
📋 Environment Detection
📋 环境检测
Before first API call, check if credentials are configured:
| Condition | Handling |
|---|---|
| Read credentials and proceed with API calls |
| Config file not found | Auto-create with default credentials, prompt user to configure dedicated AK/SK |
首次调用API前,会检查凭证是否已配置:
| 条件 | 处理逻辑 |
|---|---|
| 读取凭证并继续调用API |
| 未找到配置文件 | 使用默认凭证自动创建文件,提示用户配置专属AK/SK |
🔧 Configuration
🔧 配置
Config file:
~/.gate-dex-openapi/config.jsonjson
{
"api_key": "your_api_key",
"secret_key": "your_secret_key"
}First use: If file doesn't exist, Skill will auto-create config with built-in default credentials; recommend visiting Gate DEX Developer Platform to create dedicated AK/SK for better rate limiting and experience.
配置文件路径:
~/.gate-dex-openapi/config.jsonjson
{
"api_key": "your_api_key",
"secret_key": "your_secret_key"
}首次使用说明:如果文件不存在,Skill会使用内置默认凭证自动创建配置;建议访问Gate DEX 开发者平台创建专属AK/SK,以获得更好的请求频率限制和使用体验。
📖 Complete Specification
📖 完整规范
All API call specifications, signature algorithms, request/response formats are documented in:
→ references/openapi.md
This includes:
- HMAC-SHA256 signature algorithm
- 9 API actions (6 token-type + 3 market-type)
- Request/response examples
- Error handling
所有API调用规范、签名算法、请求/响应格式均记录在:
→ references/openapi.md
包含内容:
- HMAC-SHA256 签名算法
- 9个API动作(6个代币类 + 3个市场类)
- 请求/响应示例
- 错误处理
Skill Routing
Skill 路由
Post-market data query follow-up operation guidance:
| User Intent | Target Skill |
|---|---|
| Buy/sell tokens | |
| Transfer tokens | |
| View holdings | |
| View trading/Swap history | |
| Interact with DApp | |
市场数据查询后的后续操作指引:
| 用户意图 | 目标 Skill |
|---|---|
| 买卖代币 | |
| 转账代币 | |
| 查看持仓 | |
| 查看交易/Swap记录 | |
| 与DApp交互 | |
Cross-Skill Workflows
跨Skill 工作流
Called by Other Skills
被其他Skill调用
This Skill serves as market data and security information provider, commonly called by these Skills:
| Caller | Call Scenario | Tool Used |
|---|---|---|
| Query token info before Swap to help parse addresses | |
| Security audit target token before Swap | |
| Query available token list before Swap | |
| Query available tokens on target chain before cross-chain bridge | |
| Contract security audit before DApp transactions | |
本Skill作为市场数据和安全信息的提供者,通常被以下Skill调用:
| 调用方 | 调用场景 | 使用工具 |
|---|---|---|
| Swap前查询代币信息,辅助解析地址 | |
| Swap前对目标代币做安全审计 | |
| Swap前查询可用代币列表 | |
| 跨链桥操作前查询目标链支持的代币 | |
| DApp交易前做合约安全审计 | |
Supported Chains
支持的链
| Chain ID | Network Name | Type |
|---|---|---|
| Ethereum | EVM |
| BNB Smart Chain | EVM |
| Polygon | EVM |
| Arbitrum One | EVM |
| Optimism | EVM |
| Avalanche C-Chain | EVM |
| Base | EVM |
| Solana | Non-EVM |
| 链ID | 网络名称 | 类型 |
|---|---|---|
| Ethereum | EVM |
| BNB Smart Chain | EVM |
| Polygon | EVM |
| Arbitrum One | EVM |
| Optimism | EVM |
| Avalanche C-Chain | EVM |
| Base | EVM |
| Solana | Non-EVM |
Security Rules
安全规则
- Credential Security: must not be displayed in plain text
secret_key - Read-only Nature: All operations are data queries only, no on-chain writes involved
- Objective Display: Price, rankings, and other data presented objectively, no investment advice provided
- 凭证安全:禁止明文展示
secret_key - 只读属性:所有操作仅为数据查询,不涉及任何链上写入操作
- 客观展示:价格、排名等数据均客观呈现,不提供任何投资建议