Gate Alpha Assistant
This skill is the single entry for Gate Alpha operations. It supports seven modules: Token Discovery, Market Viewing, Trading (Buy), Trading (Sell), Account & Holdings, Account Book, and Order Management. User intent is routed to the matching workflow.
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
- - Only call MCP tools explicitly listed in this skill. Tools not documented here must NOT be called, even if they
exist in the MCP server.
MCP Dependencies
Required MCP Servers
| MCP Server | Status |
|---|
| Gate (main) | ✅ Required |
MCP Tools Used
Query Operations (Read-only)
- - cexalphagetalphaorder
- cexalphalistalphaaccountbook
- cexalphalistalphaaccounts
- cexalphalistalphacurrencies
- cexalphalistalphaorders
- cexalphalistalphatickers
- cexalphalistalphatokens
- cexalphaquotealpha_order
Execution Operations (Write)
- - cexalphaplacealphaorder
Authentication
- - API Key Required: Yes (see skill doc/runtime MCP deployment)
- Permissions: Alpha:Write
- Get API Key: https://www.gate.io/myaccount/profile/api-key/manage
Installation Check
- - Required: Gate (main)
- Install: Run installer skill for your IDE
- Cursor:
gate-mcp-cursor-installer
- Codex:
gate-mcp-codex-installer
- Claude:
gate-mcp-claude-installer
- OpenClaw: INLINECODE3
MCP Mode
Read and strictly follow references/mcp.md, then execute module routing in this skill.
- -
SKILL.md keeps module dispatch and business boundaries. - INLINECODE6 is the authoritative MCP execution layer for quote->confirm->place order flow and post-order verification.
Module Overview
| Module | Description | Trigger Keywords |
|---|
| Token Discovery | Browse tradable currencies, filter tokens by chain/platform/address, check token details | INLINECODE7 , what coins, which chain, token address, INLINECODE11 |
| Market Viewing |
Check all or specific Alpha token tickers, prices, 24h changes |
alpha price,
market,
ticker,
how much is,
what price |
|
Trading (Buy) | Buy Alpha tokens with USDT, support default or custom slippage, optional order tracking |
buy,
买,
购买,
入手,
帮我买 |
|
Trading (Sell) | Sell Alpha tokens (full or partial), optional order tracking |
sell,
卖,
卖出,
清仓,
卖掉 |
|
Account & Holdings | View Alpha account balances and calculate portfolio market value |
my holdings,
my balance,
portfolio value,
how much do I have |
|
Account Book | View Alpha account transaction history by time range |
transaction history,
流水,
资产变动,
account book,
变动记录 |
|
Order Management | Check order status, view historical buy/sell orders, search orders by time |
order status,
订单,
买单,
卖单,
order history |
Routing Rules
| Intent | Example Phrases | Route To |
|---|
| Token discovery | "What coins can I trade on Alpha?", "Show me Solana tokens", "Look up this address" | Read INLINECODE41 |
| Market viewing |
"What's the price of trump?", "How's the Alpha market?" | Read
references/market-viewing.md |
|
Trading (buy) | "帮我买 5u ELON", "Buy 100u trump with 10% slippage" | Read
references/trading-buy.md |
|
Trading (sell) | "把 ELON 全部卖掉", "卖掉一半的 trump" | Read
references/trading-sell.md |
|
Account & holdings | "What coins do I hold?", "How much is my Alpha portfolio worth?" | Read
references/account-holdings.md |
|
Account book | "最近一周的资产变动记录", "看看昨天的资产变动" | Read
references/account-book.md |
|
Order management | "我刚才那笔买单成功了吗?", "看看我买 ELON 的订单" | Read
references/order-management.md |
|
Unclear | "Tell me about Alpha", "Help with Alpha" |
Clarify: ask which module the user needs |
MCP Tools
| # | Tool | Auth | Purpose |
|---|
| 1 | INLINECODE48 | No | List all tradable Alpha currencies with chain, address, precision, status |
| 2 |
cex_alpha_list_alpha_tokens | No | Filter tokens by chain, launch platform, or contract address |
| 3 |
cex_alpha_list_alpha_tickers | No | Get latest price, 24h change, volume, market cap for Alpha tokens |
| 4 |
cex_alpha_list_alpha_accounts | Yes | Query Alpha account balances (available + locked per currency) |
| 5 |
cex_alpha_quote_alpha_order | Yes | Get a price quote for a buy/sell order (returns quote_id, valid 1 min) |
| 6 |
cex_alpha_place_alpha_order | Yes | Place a buy/sell order using a quote_id |
| 7 |
cex_alpha_get_alpha_order | Yes | Get details of a single order by order_id |
| 8 |
cex_alpha_list_alpha_orders | Yes | List orders with filters (currency, side, status, time range) |
| 9 |
cex_alpha_list_alpha_account_book | Yes | Query account transaction history by time range |
Domain Knowledge
Alpha Platform Overview
- - Gate Alpha is a platform for early-stage token trading, supporting tokens across multiple blockchains.
- Tokens are identified by
currency symbol (e.g., memeboxtrump) rather than standard ticker symbols. - Trading status values:
1 = actively trading, 2 = suspended, 3 = delisted.
Supported Chains
solana, eth, bsc, base, world, sui, arbitrum, avalanche, polygon, linea, optimism, zksync, gatelayer
Note: Chain names may be returned in different cases depending on the endpoint (e.g., SOLANA vs solana). Normalize to lowercase when comparing.
Supported Launch Platforms
meteoradbc, fourmeme, moonshot, pump, raydiumlaunchlab, letsbonk, gatefun, virtuals
Trading Mechanics
- - Buy amount: USDT quantity (e.g.,
amount="5" means spend 5 USDT). - Sell amount: Token quantity (e.g.,
amount="1000" means sell 1000 tokens). - Quote validity:
quote_id from cex_alpha_quote_alpha_order expires after 1 minute. Re-quote if expired. - Gas modes: Input
"speed" (default) or "custom" (with slippage). API returns gasMode as "1" (speed) or "2" (custom). - Order statuses:
1 = Processing, 2 = Success, 3 = Failed, 4 = Cancelled, 5 = Transferring, 6 = Cancelling transfer. Terminal statuses: 2, 3, 4.
API Field Naming Conventions
All API endpoints use snake_case naming. Key fields by endpoint:
- -
/alpha/currencies: currency, name, chain, address, amount_precision, precision, INLINECODE86 - INLINECODE87 :
currency, last, change, volume, INLINECODE92 - INLINECODE93 :
currency, available, locked, token_address, INLINECODE98 - INLINECODE99 :
id, time, currency, change, INLINECODE104 - INLINECODE105 (GET):
order_id, tx_hash, side, usdt_amount, currency, currency_amount, status, gas_mode, chain, gas_fee, transaction_fee, create_time, INLINECODE118 - Empty query results may return
[{}, {}] (array with empty objects) instead of []. Check for valid fields before processing.
Key Constraints
- - All market data endpoints (
currencies, tickers, tokens) are public and do not require authentication. - Account, trading, and order endpoints require API Key authentication.
- Pagination: use
page and limit parameters for large result sets. - Rate limits: quote 10r/s, place order 5r/s, other endpoints 200r/10s.
Execution
1. Intent Classification
Classify the user request into one of seven modules: Token Discovery, Market Viewing, Trading (Buy), Trading (Sell), Account & Holdings, Account Book, or Order Management.
2. Route and Load
Load the corresponding reference document and follow its workflow.
3. Return Result
Return the result using the report template defined in each sub-module.
Error Handling
| Error Type | Typical Cause | Handling Strategy |
|---|
| Currency not found | Invalid or misspelled currency symbol | Suggest searching via cex_alpha_list_alpha_currencies or INLINECODE127 |
| Token suspended |
Trading status is 2 (suspended) | Inform user that the token is currently suspended from trading |
| Token delisted | Trading status is 3 (delisted) | Inform user that the token has been delisted |
| Empty result | No tokens match the filter criteria | Clarify filter parameters (chain, platform, address) and suggest alternatives |
| Authentication required | Calling authenticated endpoint without credentials | Inform user that API Key authentication is needed; guide to setup |
| Pagination overflow | Requested page beyond available data | Return last available page and inform user of total count |
| Quote expired | quote
id used after 1-minute validity window | Re-call cex_alpha_quote_alpha_order to obtain a fresh quoteid |
| Insufficient balance | Sell amount exceeds available balance | Inform user of actual available balance and suggest adjusting the amount |
| Order failed | On-chain transaction failed | Report the
failed_reason from the order detail and suggest retrying |
| Order timeout | Polling exceeded 60 seconds without terminal status | Inform user the order is still processing; provide order_id for manual follow-up |
| Rate limit exceeded | Too many requests in short period | Wait briefly and retry; inform user if persistent |
Safety Rules
- - Order confirmation: NEVER place a buy or sell order without showing the quote details and receiving explicit user confirmation.
- Token validation: Always verify
status=1 before initiating a trade. Abort if suspended or delisted. - Balance verification: Before selling, always confirm
available >= sell_amount. Report actual balance if insufficient. - Quote freshness: Always check quote_id validity (1-minute window). Re-quote if the user delays confirmation.
- Never fabricate token data. If a query returns empty results, report it honestly.
- When displaying token addresses, show the full address to avoid confusion between similarly named tokens.
- Always verify trading status before suggesting a token is tradable.
Gate Alpha 助手
本技能是 Gate Alpha 操作的统一入口。支持七大模块:代币发现、行情查看、交易(买入)、交易(卖出)、账户与持仓、账本记录和订单管理。用户意图将被路由至对应的工作流程。
通用规则
⚠️ 停止 — 在继续之前,您必须阅读并严格遵守共享运行时规则。
在阅读完所有规则之前,请勿选择或调用任何工具。这些规则具有最高优先级。
→ 阅读 gate-runtime-rules.md
- - 仅调用本技能中明确列出的 MCP 工具。 即使 MCP 服务器中存在未在此处记录的工具,也不得调用。
MCP 依赖
必需的 MCP 服务器
使用的 MCP 工具
查询操作(只读)
- - cexalphagetalphaorder
- cexalphalistalphaaccountbook
- cexalphalistalphaaccounts
- cexalphalistalphacurrencies
- cexalphalistalphaorders
- cexalphalistalphatickers
- cexalphalistalphatokens
- cexalphaquotealpha_order
执行操作(写入)
- - cexalphaplacealphaorder
认证
- - 需要 API 密钥:是(参见技能文档/运行时 MCP 部署)
- 权限:Alpha:Write
- 获取 API 密钥:https://www.gate.io/myaccount/profile/api-key/manage
安装检查
- - 必需:Gate(主)
- 安装:运行适用于您 IDE 的安装技能
- Cursor:gate-mcp-cursor-installer
- Codex:gate-mcp-codex-installer
- Claude:gate-mcp-claude-installer
- OpenClaw:gate-mcp-openclaw-installer
MCP 模式
阅读并严格遵守 references/mcp.md,然后在本技能中执行模块路由。
- - SKILL.md 负责模块分发和业务边界。
- references/mcp.md 是报价->确认->下单流程及下单后验证的权威 MCP 执行层。
模块概览
| 模块 | 描述 | 触发关键词 |
|---|
| 代币发现 | 浏览可交易币种,按链/平台/地址筛选代币,查看代币详情 | alpha tokens、what coins、which chain、token address、token details |
| 行情查看 |
查看所有或特定 Alpha 代币的行情、价格、24小时涨跌幅 | alpha price、market、ticker、how much is、what price |
|
交易(买入) | 使用 USDT 买入 Alpha 代币,支持默认或自定义滑点,可选订单跟踪 | buy、买、购买、入手、帮我买 |
|
交易(卖出) | 卖出 Alpha 代币(全部或部分),可选订单跟踪 | sell、卖、卖出、清仓、卖掉 |
|
账户与持仓 | 查看 Alpha 账户余额并计算投资组合市值 | my holdings、my balance、portfolio value、how much do I have |
|
账本记录 | 按时间范围查看 Alpha 账户交易历史 | transaction history、流水、资产变动、account book、变动记录 |
|
订单管理 | 查看订单状态、历史买卖订单、按时间搜索订单 | order status、订单、买单、卖单、order history |
路由规则
| 意图 | 示例短语 | 路由至 |
|---|
| 代币发现 | What coins can I trade on Alpha?、Show me Solana tokens、Look up this address | 阅读 references/token-discovery.md |
| 行情查看 |
Whats the price of trump?、Hows the Alpha market? | 阅读 references/market-viewing.md |
|
交易(买入) | 帮我买 5u ELON、Buy 100u trump with 10% slippage | 阅读 references/trading-buy.md |
|
交易(卖出) | 把 ELON 全部卖掉、卖掉一半的 trump | 阅读 references/trading-sell.md |
|
账户与持仓 | What coins do I hold?、How much is my Alpha portfolio worth? | 阅读 references/account-holdings.md |
|
账本记录 | 最近一周的资产变动记录、看看昨天的资产变动 | 阅读 references/account-book.md |
|
订单管理 | 我刚才那笔买单成功了吗?、看看我买 ELON 的订单 | 阅读 references/order-management.md |
|
不明确 | Tell me about Alpha、Help with Alpha |
澄清:询问用户需要哪个模块 |
MCP 工具
| # | 工具 | 认证 | 用途 |
|---|
| 1 | cexalphalistalphacurrencies | 否 | 列出所有可交易的 Alpha 币种,包含链、地址、精度、状态 |
| 2 |
cex
alphalist
alphatokens | 否 | 按链、发行平台或合约地址筛选代币 |
| 3 | cex
alphalist
alphatickers | 否 | 获取 Alpha 代币的最新价格、24小时涨跌幅、成交量、市值 |
| 4 | cex
alphalist
alphaaccounts | 是 | 查询 Alpha 账户余额(每个币种的可用+锁定) |
| 5 | cex
alphaquote
alphaorder | 是 | 获取买卖订单的报价(返回 quote_id,有效期1分钟) |
| 6 | cex
alphaplace
alphaorder | 是 | 使用 quote_id 提交买卖订单 |
| 7 | cex
alphaget
alphaorder | 是 | 按 order_id 获取单个订单详情 |
| 8 | cex
alphalist
alphaorders | 是 | 按筛选条件列出订单(币种、方向、状态、时间范围) |
| 9 | cex
alphalist
alphaaccount_book | 是 | 按时间范围查询账户交易历史 |
领域知识
Alpha 平台概述
- - Gate Alpha 是一个早期代币交易平台,支持多区块链代币。
- 代币通过 currency 符号(例如 memeboxtrump)而非标准交易代码标识。
- 交易状态值:1 = 交易中,2 = 暂停,3 = 已下架。
支持的链
solana、eth、bsc、base、world、sui、arbitrum、avalanche、polygon、linea、optimism、zksync、gatelayer
注意:链名可能因接口不同而返回不同的大小写(例如 SOLANA vs solana)。比较时统一转换为小写。
支持的发行平台
meteoradbc、fourmeme、moonshot、pump、raydiumlaunchlab、letsbonk、gatefun、virtuals
交易机制
- - 买入金额:USDT 数量(例如 amount=5 表示花费 5 USDT)。
- 卖出数量:代币数量(例如 amount=1000 表示卖出 1000 个代币)。
- 报价有效期:来自 cexalphaquotealphaorder 的 quote_id 在 1 分钟后过期。过期后需重新报价。
- Gas 模式:输入 speed(默认)或 custom(带滑点)。API 返回 gasMode 为 1(快速)或 2(自定义)。
- 订单状态:1 = 处理中,2 = 成功,3 = 失败,4 = 已取消,5 = 转账中,6 = 取消转账中。终态:2、3、4。
API 字段命名规范
所有 API 接口使用 snake_case 命名。关键字段按接口分类:
- - /alpha/currencies:currency、name、chain、address、amount_precision、precision、status