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
Added on

NPX Install

npx skill4agent add gate/gate-skills gate-dex-market

Tags

Translated version includes tags in frontmatter

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

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

📋 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

🔧 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.

📖 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 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

Cross-Skill Workflows

Called by Other Skills

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

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

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