gate-dex-market
Original:🇺🇸 English
Translated
1 scripts
Gate DEX market data skill. Uses AK/SK authentication to call Gate DEX OpenAPI, providing token and market quote read-only queries. Use when users mention quotes, prices, token information, rankings, security audits.
3installs
Sourcegate/gate-skills
Added on
NPX Install
npx skill4agent add gate/gate-skills gate-dex-marketTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Gate DEX Market
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.
🎯 Architecture
| Mode | Connection Method | Advantages | Use Cases |
|---|---|---|---|
| ⚡ OpenAPI Mode | AK/SK direct calls | Strong independence, fast response | Market data queries, token information, security audits |
📋 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 |
🔧 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.
📖 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
Skill Routing
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 | |
Cross-Skill Workflows
Called by Other Skills
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 | |
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 |
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