gate-dex-market

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Gate 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

🎯 架构

ModeConnection MethodAdvantagesUse Cases
OpenAPI ModeAK/SK direct callsStrong independence, fast responseMarket data queries, token information, security audits

模式连接方式优势适用场景
OpenAPI 模式AK/SK 直接调用独立性强、响应速度快市场数据查询、代币信息查询、安全审计

📋 Environment Detection

📋 环境检测

Before first API call, check if credentials are configured:
ConditionHandling
~/.gate-dex-openapi/config.json
exists
Read credentials and proceed with API calls
Config file not foundAuto-create with default credentials, prompt user to configure dedicated AK/SK

首次调用API前,会检查凭证是否已配置:
条件处理逻辑
~/.gate-dex-openapi/config.json
存在
读取凭证并继续调用API
未找到配置文件使用默认凭证自动创建文件,提示用户配置专属AK/SK

🔧 Configuration

🔧 配置

Config file:
~/.gate-dex-openapi/config.json
json
{
  "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.json
json
{
  "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 IntentTarget Skill
Buy/sell tokens
gate-dex-trade
Transfer tokens
gate-dex-wallet/references/transfer
View holdings
gate-dex-wallet
View trading/Swap history
gate-dex-wallet
Interact with DApp
gate-dex-wallet/references/dapp

市场数据查询后的后续操作指引:
用户意图目标 Skill
买卖代币
gate-dex-trade
转账代币
gate-dex-wallet/references/transfer
查看持仓
gate-dex-wallet
查看交易/Swap记录
gate-dex-wallet
与DApp交互
gate-dex-wallet/references/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:
CallerCall ScenarioTool Used
gate-dex-trade
Query token info before Swap to help parse addresses
token_get_coin_info
gate-dex-trade
Security audit target token before Swap
token_get_risk_info
gate-dex-trade
Query available token list before Swap
token_list_swap_tokens
gate-dex-trade
Query available tokens on target chain before cross-chain bridge
token_list_cross_chain_bridge_tokens
gate-dex-wallet/references/dapp
Contract security audit before DApp transactions
token_get_risk_info

本Skill作为市场数据和安全信息的提供者,通常被以下Skill调用:
调用方调用场景使用工具
gate-dex-trade
Swap前查询代币信息,辅助解析地址
token_get_coin_info
gate-dex-trade
Swap前对目标代币做安全审计
token_get_risk_info
gate-dex-trade
Swap前查询可用代币列表
token_list_swap_tokens
gate-dex-trade
跨链桥操作前查询目标链支持的代币
token_list_cross_chain_bridge_tokens
gate-dex-wallet/references/dapp
DApp交易前做合约安全审计
token_get_risk_info

Supported Chains

支持的链

Chain IDNetwork NameType
eth
EthereumEVM
bsc
BNB Smart ChainEVM
polygon
PolygonEVM
arbitrum
Arbitrum OneEVM
optimism
OptimismEVM
avax
Avalanche C-ChainEVM
base
BaseEVM
sol
SolanaNon-EVM

链ID网络名称类型
eth
EthereumEVM
bsc
BNB Smart ChainEVM
polygon
PolygonEVM
arbitrum
Arbitrum OneEVM
optimism
OptimismEVM
avax
Avalanche C-ChainEVM
base
BaseEVM
sol
SolanaNon-EVM

Security Rules

安全规则

  1. Credential Security:
    secret_key
    must not be displayed in plain text
  2. Read-only Nature: All operations are data queries only, no on-chain writes involved
  3. Objective Display: Price, rankings, and other data presented objectively, no investment advice provided
  1. 凭证安全
    secret_key
    禁止明文展示
  2. 只读属性:所有操作仅为数据查询,不涉及任何链上写入操作
  3. 客观展示:价格、排名等数据均客观呈现,不提供任何投资建议