Xpersona
G

Gate DEX Market

CLAWHUB · Unverified

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 pric... Skill: Gate DEX Market Owner: gate-exchange Summary: 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 pric... Tags: latest:1.0.3 Version history: v1.0.3 | 2026-04-07T10:31:54.016Z | auto - Removed the file: references/README-openapi.md - No changes to functionality or interfaces; project structure cleanup only. v1.

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s172g4d1dcv6ccs6desbb2xw1583qza9:gate-dex-market
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-gate-exchange-gate-dex-market/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

144,260 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: gate-dex-market
version: "2026.3.24-1"
updated: "2026-03-24"
description: "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."
---

# 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](https://github.com/gate/gate-skills/blob/master/skills/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

```text
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 / Candle

README.md

# Gate DEX Market

> **Comprehensive Market Data Skill** — Dual-mode MCP + OpenAPI with intelligent routing for optimal call selection

Provides complete market data query capabilities through Gate DEX, supporting K-line charts, token information, security audits, rankings, and more.

## 🔄 Auto-Update Feature

This skill automatically checks for updates from the [Gate Skills Repository](https://github.com/gate/gate-skills/tree/master/skills/gate-dex-market) **only at session start or first installation**:

- ⚡ **Performance Optimized**: Only checks once per session (no interaction delays)
- 🕐 **Smart Cooldown**: 1-hour minimum between version checks
- ✅ **Session Caching**: Skip repeated checks within the same session
- 🛡️ **Stable Operation**: Update failures never interrupt normal functionality  
- 🔍 **Version Tracking**: Current version displayed at session start
- 🌐 **Remote Source**: Official Gate Skills repository on GitHub

**Update Timing**:
- 🚀 **Session Start**: Check once when session begins
- 📦 **First Install**: Check during initial skill installation  
- 🔧 **Manual Trigger**: User can request "check for updates"
- ❌ **Never**: During normal user interactions (for performance)

**Update Rules**:
- 📈 Update: Local version < Remote version
- ⏭️ Skip: Remote skill doesn't exist or Local version ≥ Remote  
- 💡 User-friendly notifications for all update statuses

---

## 🎯 Core Modes

| Mode | Connection Method | Features | Use Cases |
|------|------------------|----------|-----------|
| 🔗 **MCP Mode** | gate-dex MCP Server | No credentials required, high integration | Wallet collaboration, unified sessions |
| ⚡ **OpenAPI Mode** | Direct AK/SK calls | Independent & fast, feature-rich | Independent queries, lightweight scenarios |

---

## 🚀 Quick Installation

### Option 1: Auto Install Script (Recommended)

```bash
# Run market data specialized install script
./gate-dex-market/install.sh
```

Script features:
- 🔍 Auto-detect AI platforms and configure
- 📈 Optimize market data Skill loading order
- 📊 Configure MCP + OpenAPI dual-mode support
- 🎯 Generate market data prioritized routing files

### Option 2: Manual Configuration

Detailed configuration methods see [Root README.md](../README.md).

---

## 🚀 Quick Usage

### Trigger Keywords

- **Market Data**: `K-line`, `quotes`, `price trends`, `trading volume`
- **Token Information**: `token details`, `holder analysis`, `new token discovery`
- **Security Audit**: `token security`, `risk check`, `honeypot detection`
- **Rankings**: `gainers list`, `volume ranking`, `trending tokens`

### Example Conversations

```text
💬 "Show me the K-line chart for USDT on ETH"    → Auto-select best mode
💬 "Latest token security audit report"          → Security risk analysis  
💬 "Today's top gaining tokens ranking"          → Rankings query
```

---

## 📁 File Structure

```text
gate-dex-market/
├── README.md              # This document
├── SKILL.md               # Agent dual-mode 

_meta.json

{
  "ownerId": "kn74x9hm07phcw70v30nff2x2h82t09z",
  "slug": "gate-dex-market",
  "version": "1.0.3",
  "publishedAt": 1775557914016
}

references/mcp.md

---
name: gate-dex-market-mcp
version: "2026.3.14-2"
updated: "2026-03-14"
description: "Gate DEX Market MCP mode detailed skill. Calls through gate-dex MCP server for market data queries. No authentication required for market data operations."
---

# Gate DEX Market - MCP Mode Detailed Skill

> **MCP Mode Exclusive Skill** — Calls market data interfaces through gate-dex MCP Server, **no authentication required**.

> See SKILL.md for MCP detection. This file assumes MCP Server is available. For MCP Server setup instructions, see `setup.md`.

---

## MCP Tool Call Specifications

> **Important**: All MCP tool calls below **do not require `mcp_token` parameter** and can be called directly. This differs from wallet operations that require authentication.

### 1. `dex_market_get_kline` — K-line Data Query

Get K-line chart data for specified tokens, used for technical analysis and price trend viewing.

**Tool Signature**:

```javascript
CallMcpTool(
  server="gate-dex",
  toolName="dex_market_get_kline",
  arguments={
    chain: string,           // Chain identifier
    token_address: string,   // Token contract address
    interval: string,        // K-line period
    limit?: number          // Number of records to return (optional, default 100)
  }
)
```

**Parameter Details**:


| Parameter       | Type   | Required | Description                          | Example Values                                          |
| --------------- | ------ | -------- | ------------------------------------ | ------------------------------------------------------- |
| `chain`         | string | ✓        | Chain identifier                     | `"eth"`, `"bsc"`, `"polygon"`                           |
| `token_address` | string | ✓        | Token contract address (hexadecimal) | `"0xdAC17F958D2ee523a2206206994597C13D831ec7"`          |
| `interval`      | string | ✓        | K-line time interval                 | `"1m"`, `"5m"`, `"15m"`, `"1h"`, `"4h"`, `"1d"`, `"1w"` |
| `limit`         | number | ✗        | Number of K-line records to return   | `50`, `100`, `200` (default 100)                        |


**Call Example**:

```javascript
// Query USDT 1-hour K-line, latest 100 records
CallMcpTool(
  server="gate-dex",
  toolName="dex_market_get_kline",
  arguments={
    chain: "eth",
    token_address: "0xdAC17F958D2ee523a2206206994597C13D831ec7", // USDT
    interval: "1h",
    limit: 100
  }
)
```

**Return Value Structure**:

```json
{
  "success": true,
  "data": [
    {
      "timestamp": 1710388800,      // Timestamp
      "open": "1.0001",            // Open price
      "high": "1.0005",            // High price
      "low": "0.9998",             // Low price
      "close": "1.0003",           // Close price
      "volume": "1234567.89"       // Trading volume
    }
  ]
}
```

### 2. `dex_token_get_coin_info` — Token Information Query

Query token basic information including name, symbol, precision, current price, market cap and other key data.

**Tool Signat

references/openapi.md

---
name: gate-dex-market-openapi
version: "2026.3.14-2"
updated: "2026-03-14"
description: "Gate OpenAPI market and token data query skill. Calls Gate OpenAPI via AK/SK authentication, providing: Token data (Swap token list, token info, holders, rankings, new tokens, security audit including honeypot/buy-sell tax/holder concentration); Market data (trading volume stats across time dimensions, K-line, liquidity pool events). Use when users need to query tradable tokens, token info, top holders, price rankings, new tokens, token security, or view trading volume, buy-sell pressure, K-line, liquidity changes."
---

# Gate DEX OpenMarket

---

## 1. Step 0 — Environment Detection (Mandatory, must execute every time triggered)

**This step must be executed first every time the skill is triggered and cannot be skipped.**

### 1.1 Check Configuration File

Read `~/.gate-dex-openapi/config.json` (absolute path, not in workspace).
**If file does not exist**:

1. Create directory `~/.gate-dex-openapi/` (if not exists)
2. Automatically create configuration file using built-in default credentials:

```json
{
  "api_key": "7RAYBKMG5MNMKK7LN6YGCO5UDI",
  "secret_key": "COnwcshYA3EK4BjBWWrvwAqUXrvxgo0wGNvmoHk7rl4.6YLniz4h"
}
```

3. Use Shell `mkdir -p ~/.gate-dex-openapi && chmod 700 ~/.gate-dex-openapi` to create directory and set permissions
4. Use Write tool to write the above JSON to `~/.gate-dex-openapi/config.json`
5. Use Shell `chmod 600 ~/.gate-dex-openapi/config.json` to restrict file permissions (owner read-write only)
6. Display the following prompt to user:

```text
Configuration file ~/.gate-dex-openapi/config.json has been created with default credentials and is ready to use.
The configuration file is stored in the user home directory (not in workspace) and will not be tracked by git.

To create dedicated AK/SK for better service experience, please visit Gate DEX Developer Platform:
https://www.gatedex.com/developer
Steps: Connect wallet to register → Settings to bind email and phone → API Key Management to create keys
```

**If file exists**:

1. Read and parse JSON
2. Check if `api_key` equals `7RAYBKMG5MNMKK7LN6YGCO5UDI` (default credentials)
   - Yes → Append a reminder in subsequent response: `"Currently using public free default credentials (Basic tier 2 QPS rate limit), recommend visiting https://www.gatedex.com/developer to create dedicated AK/SK"`
   - No → No reminder

### 1.2 Verify Credential Validity

Since there's no lightweight test interface available, Agent can verify directly when executing user's actual query requests. If returns `10103` or other authentication errors, prompt user based on error codes.

---

## 2. Credential Management

### 2.1 Configuration File Format

File path: `~/.gate-dex-openapi/config.json` (absolute path, shared across all workspaces)

```json
{
  "api_key": "Your API Key",
  "secret_key": "Your Secret Key"
}
```

### 2.2 Built-in Default Credentials

```text
AK: 7RAYBKMG5MNMKK7LN6YGCO5UDI
SK: COnwcshY

Sponsored

Ads related to Gate DEX Market and adjacent AI workflows.