Gate Exchange Simple Earn Skill
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)
- - cexearnchangeunilend
- cexearngetunicurrency
- cexearngetuniinterest
- cexearnlistearnfixedtermhistory
- cexearnlistearnfixedtermlends
- cexearnlistearnfixedtermproducts
- cexearnlistearnfixedtermproductsbyasset
- cexearnlistunirate
- cexearnlistuseruni_lends
Execution Operations (Write)
- - cexearncreateearnfixedtermlend
- cexearncreateearnfixedtermpreredeem
- cexearncreateuni_lend
Authentication
- - API Key Required: Yes (see skill doc/runtime MCP deployment)
- Permissions: Earn: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 this skill's Simple Earn workflow.
- -
SKILL.md keeps routing and business constraints. - INLINECODE6 is the authoritative MCP execution layer for query/action separation, confirmation gates, and post-action verification.
Trigger Conditions
Activate this skill when the user expresses any of the following intents:
- - Simple Earn, Uni, flexible earn, fixed earn, fixed-term, subscribe, redeem, positions, interest, top APY
- Any request involving Simple Earn subscribe, redeem, position query, interest query, fixed-term product list, or fixed-term history query
Prerequisites
- - MCP Dependency: Requires gate-mcp to be installed.
- Authentication: Position and write operations require API key authentication; rate and currency queries are public.
- Disclaimer: Always append when showing APY or rates: "This information is for reference only and does not constitute investment advice. APY may change. Please understand the product terms before subscribing."_
Supported Workflows
Flexible (Uni)
- - Single-currency or all positions query
- Single-currency interest query
- Estimated APY query
- Subscribe (lend), redeem, and change min rate operations with user confirmation
Fixed-term
- - Product list and product list by currency
- Subscribe and early redeem with user confirmation
- Current total positions and single-order detail queries
- History queries for subscribe, redeem, interest, and extra bonus
Available MCP Tools
Flexible (Uni)
| Tool | Auth | Description | Reference |
|---|
| INLINECODE7 | No | Estimated APY per currency (currency enumeration; use with getunicurrency for limits) | INLINECODE8 |
| INLINECODE9 |
No | Single-currency details (min_rate for subscribe) |
references/earn-uni-mcp-tools.md |
|
cex_earn_create_uni_lend | Yes | Create lend (subscribe) or redeem |
references/earn-uni-mcp-tools.md |
|
cex_earn_change_uni_lend | Yes | Change min rate for lend |
references/earn-uni-mcp-tools.md |
|
cex_earn_list_user_uni_lends | Yes | User positions (optional currency filter) |
references/earn-uni-mcp-tools.md |
|
cex_earn_get_uni_interest | Yes | Single-currency cumulative interest |
references/earn-uni-mcp-tools.md |
|
cex_earn_list_uni_rate | No | Estimated APY per currency (for top APY) |
references/earn-uni-mcp-tools.md |
Fixed-term
| Tool | Auth | Description | Reference |
|---|
| INLINECODE21 | No | List all fixed-term products | INLINECODE22 |
| INLINECODE23 |
No | List fixed-term products by currency |
references/fixed-earn-mcp-tools.md |
|
cex_earn_create_earn_fixed_term_lend | Yes | Create fixed-term lend (subscribe) |
references/fixed-earn-mcp-tools.md |
|
cex_earn_create_earn_fixed_term_pre_redeem | Yes | Early redeem fixed-term order |
references/fixed-earn-mcp-tools.md |
|
cex_earn_list_earn_fixed_term_lends | Yes | User fixed-term positions |
references/fixed-earn-mcp-tools.md |
|
cex_earn_list_earn_fixed_term_history | Yes | Fixed-term history records |
references/fixed-earn-mcp-tools.md |
Routing Rules
Flexible requests
| Case | User Intent | Signal Keywords | Action |
|---|
| 1 | Subscribe (lend) | "subscribe", "lend to Simple Earn" | Collect currency/amount/min_rate and confirm, then call cex_earn_create_uni_lend with type: lend. |
| 2 |
Redeem | "redeem", "redeem from Simple Earn" | Collect currency/amount and confirm, then call
cex_earn_create_uni_lend with
type: redeem. |
| 3 | Single-currency position | "my USDT Simple Earn", "position for one currency" | See
references/scenarios.md flexible scenario section |
| 4 | All positions | "all Simple Earn positions", "total positions" | See
references/scenarios.md flexible scenario section |
| 5 | Single-currency interest | "interest", "USDT interest" | See
references/scenarios.md flexible scenario section |
| 6 | Subscribe top APY | "top APY", "one-click subscribe top APY" | Show top APY via
cex_earn_list_uni_rate, ask confirmation, then call
cex_earn_create_uni_lend. |
| 7 | Change lend settings (e.g. min rate) | "change min
rate", "change Simple Earn settings" | Collect currency/minrate and confirm, then call
cex_earn_change_uni_lend. |
| 8 | Auth failure (401/403) | MCP returns 401/403 | Do not expose keys; prompt user to configure Gate CEX API Key (earn). |
Fixed-term requests
| Case | User Intent | Signal Keywords | Action |
|---|
| 1 | All fixed-term products | "fixed-term products" | See references/scenarios.md fixed-term section 1 and references/fixed-earn-mcp-tools.md §1 |
| 2 |
Fixed-term products by currency | "USDT fixed-term products" | See
references/scenarios.md fixed-term section 2 and
references/fixed-earn-mcp-tools.md §2 |
| 3 | Fixed-term subscribe | "subscribe 1 SOL fixed-term" | Collect currency/amount/term and confirm, then call
cex_earn_create_earn_fixed_term_lend. |
| 4 | Fixed-term early redeem | "redeem order 5862443199" | Collect
order_id and confirm, then call
cex_earn_create_earn_fixed_term_pre_redeem. |
| 5 | Fixed-term total positions | "total fixed-term positions", "current total fixed-term position amount" | Call
cex_earn_list_earn_fixed_term_lends with
order_type: "1",
page, and
limit. |
| 6 | Single fixed-term order detail | "order 5862443199" | Call
cex_earn_list_earn_fixed_term_lends with
order_type: "1" and
order_id. |
| 7 | Fixed-term history | "subscription records", "redeem records", "interest records" | Call
cex_earn_list_earn_fixed_term_history with
type,
page,
limit, and optional time range. |
| 8 | Compliance / region restriction | region restriction questions | Return the standard compliance error message if the API rejects the request. |
| 9 | Compliance check failure | compliance validation failed | Do not retry or expose internal logic; return the API error message when available. |
Execution
- 1. Identify user intent from the routing rules above.
- For flexible subscribe/redeem/top APY and fixed-term subscribe/early redeem: collect required params, confirm with the user, then call the corresponding MCP tool.
- For flexible or fixed-term read-only queries: read the matching scenario section in
references/scenarios.md and follow the workflow there. - For auth failures: do not expose API keys or raw errors; prompt the user to configure API key / log in again.
- If the intent is ambiguous, ask a clarifying question before routing.
Domain Knowledge
Flexible (Uni)
- - Subscribe (lend) means the user lends a specified amount of a currency to the Simple Earn pool.
- Redeem means the user redeems a specified amount from the pool.
- INLINECODE62 is the minimum acceptable hourly rate for the currency; required for lend.
- Settlement windows: lend and redeem are not allowed in the two minutes before and after each whole hour (use for errors/logic only; do not surface specific clock times or timestamps to the user unless the user explicitly asks when settlement applies).
- User-facing display (flexible only): In any reply based on flexible Uni MCP data, do not show time-related fields—omit timestamps, dates, time-of-day, countdowns, chart time axes, history operation times, and any API field whose purpose is when something occurred. Show only non-time facts (currency, amounts, balances, rates/APY,
interest_status, success/failure). If a tool returns only time-series data (e.g. APY chart), summarize without timestamps (e.g. latest estimated APY only) or skip the series.
Fixed-term
- - Subscribe uses only products with
status=2 (subscribing) and show_status=2 (visible). - Product list queries can be filtered by currency and product type.
- Fixed-term positions and history should be presented using the table formats defined in
references/scenarios.md and references/fixed-earn-mcp-tools.md. - Early redeem uses the fixed-term order ID and returns the redeemed principal.
Safety Rules
- - Always confirm currency, amount, and minrate (for flexible lend) or currency/amount/term (for fixed-term subscribe) before calling write MCPs.
- Always confirm orderid before calling fixed-term early redeem.
- Do not recommend specific currencies or predict rates.
- Never expose API keys, internal endpoint URLs, or raw error traces to the user.
- Reject negative or zero amounts; validate that the currency is supported.
Error Handling
| Condition | Response |
|---|
| Auth endpoint returns 401/403 | "Please configure your Gate CEX API Key in MCP with earn/account permission." Do not expose keys or internal details. |
| Flexible subscribe/redeem or fixed-term write request fails validation |
Validate inputs, confirm details, then call the corresponding write tool. |
| Position or history query fails | "Unable to load positions/history. Please check your API key has earn/account read permission." |
| Empty positions or no rate data | "No positions found." / "No rate data available at the moment." |
Reference Files
- - Flexible (Uni) MCP tools: INLINECODE68
- Fixed-term MCP tools: INLINECODE69
- Prompt examples and routing: INLINECODE70
Gate Exchange Simple Earn 技能
通用规则
⚠️ 停止 — 在继续操作前,您必须阅读并严格遵守共享运行时规则。
在阅读所有规则之前,不得选择或调用任何工具。这些规则具有最高优先级。
→ 阅读 gate-runtime-rules.md
- - 仅调用本技能中明确列出的 MCP 工具。 即使 MCP 服务器中存在未在此处记录的工具,也不得调用。
MCP 依赖
必需的 MCP 服务器
使用的 MCP 工具
查询操作(只读)
- - cexearnchangeunilend
- cexearngetunicurrency
- cexearngetuniinterest
- cexearnlistearnfixedtermhistory
- cexearnlistearnfixedtermlends
- cexearnlistearnfixedtermproducts
- cexearnlistearnfixedtermproductsbyasset
- cexearnlistunirate
- cexearnlistuseruni_lends
执行操作(写入)
- - cexearncreateearnfixedtermlend
- cexearncreateearnfixedtermpreredeem
- cexearncreateuni_lend
认证
- - 需要 API 密钥:是(参见技能文档/运行时 MCP 部署)
- 权限:Earn: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,然后执行本技能的 Simple Earn 工作流程。
- - SKILL.md 包含路由和业务约束。
- references/mcp.md 是权威的 MCP 执行层,用于查询/操作分离、确认关卡和操作后验证。
触发条件
当用户表达以下任何意图时,激活此技能:
- - Simple Earn、Uni、灵活赚币、定期赚币、定期、申购、赎回、持仓、利息、最高 APY
- 任何涉及 Simple Earn 申购、赎回、持仓查询、利息查询、定期产品列表或定期历史查询的请求
前提条件
- - MCP 依赖:需要安装 gate-mcp。
- 认证:持仓和写入操作需要 API 密钥认证;费率和币种查询为公开操作。
- 免责声明:显示 APY 或费率时,始终附加:此信息仅供参考,不构成投资建议。APY 可能发生变化。请在申购前了解产品条款。_
支持的工作流程
灵活(Uni)
- - 单币种或全部持仓查询
- 单币种利息查询
- 预估 APY 查询
- 申购(出借)、赎回和更改最低利率操作(需用户确认)
定期
- - 产品列表及按币种查询产品
- 申购和提前赎回(需用户确认)
- 当前总持仓和单笔订单详情查询
- 申购、赎回、利息和额外奖励的历史查询
可用的 MCP 工具
灵活(Uni)
| 工具 | 认证 | 描述 | 参考 |
|---|
| cexearnlistunirate | 否 | 每币种预估 APY(币种枚举;与 getunicurrency 配合使用以获取限额) | references/earn-uni-mcp-tools.md |
| cexearngetunicurrency |
否 | 单币种详情(申购的 min_rate) | references/earn-uni-mcp-tools.md |
| cex
earncreate
unilend | 是 | 创建出借(申购)或赎回 | references/earn-uni-mcp-tools.md |
| cex
earnchange
unilend | 是 | 更改出借的最低利率 | references/earn-uni-mcp-tools.md |
| cex
earnlist
useruni_lends | 是 | 用户持仓(可选币种筛选) | references/earn-uni-mcp-tools.md |
| cex
earnget
uniinterest | 是 | 单币种累计利息 | references/earn-uni-mcp-tools.md |
| cex
earnlist
unirate | 否 | 每币种预估 APY(用于最高 APY) | references/earn-uni-mcp-tools.md |
定期
| 工具 | 认证 | 描述 | 参考 |
|---|
| cexearnlistearnfixedtermproducts | 否 | 列出所有定期产品 | references/fixed-earn-mcp-tools.md |
| cexearnlistearnfixedtermproductsbyasset |
否 | 按币种列出定期产品 | references/fixed-earn-mcp-tools.md |
| cex
earncreate
earnfixed
termlend | 是 | 创建定期出借(申购) | references/fixed-earn-mcp-tools.md |
| cex
earncreate
earnfixed
termpre_redeem | 是 | 提前赎回定期订单 | references/fixed-earn-mcp-tools.md |
| cex
earnlist
earnfixed
termlends | 是 | 用户定期持仓 | references/fixed-earn-mcp-tools.md |
| cex
earnlist
earnfixed
termhistory | 是 | 定期历史记录 | references/fixed-earn-mcp-tools.md |
路由规则
灵活请求
| 情况 | 用户意图 | 信号关键词 | 操作 |
|---|
| 1 | 申购(出借) | 申购、出借到 Simple Earn | 收集币种/金额/minrate 并确认,然后调用 cexearncreateunilend,参数 type: lend。 |
| 2 |
赎回 | 赎回、从 Simple Earn 赎回 | 收集币种/金额并确认,然后调用 cexearn
createuni_lend,参数 type: redeem。 |
| 3 | 单币种持仓 | 我的 USDT Simple Earn、一个币种的持仓 | 参见 references/scenarios.md 灵活场景部分 |
| 4 | 全部持仓 | 所有 Simple Earn 持仓、总持仓 | 参见 references/scenarios.md 灵活场景部分 |
| 5 | 单币种利息 | 利息、USDT 利息 | 参见 references/scenarios.md 灵活场景部分 |
| 6 | 申购最高 APY | 最高 APY、一键申购最高 APY | 通过 cex
earnlist
unirate 显示最高 APY,请求确认,然后调用 cex
earncreate
unilend。 |
| 7 | 更改出借设置(例如最低利率) | 更改 min
rate、更改 Simple Earn 设置 | 收集币种/minrate 并确认,然后调用 cex
earnchange
unilend。 |
| 8 | 认证失败(401/403) | MCP 返回 401/403 | 不要暴露密钥;提示用户配置 Gate CEX API 密钥(earn)。 |
定期请求
| 情况 | 用户意图 | 信号关键词 | 操作 |
|---|
| 1 | 所有定期产品 | 定期产品 | 参见 references/scenarios.md 定期部分 1 和 references/fixed-earn-mcp-tools.md §1 |
| 2 |
按币种查询定期产品 | USDT 定期产品 | 参见 references/scenarios.md 定期部分 2 和 references/fixed-earn-mcp-tools.md §2 |
| 3 | 定期申购 | 申购 1 SOL 定期 | 收集币