1---2name: gate-exchange-simpleearn3description: Query Gate Simple Earn flexible (Uni) and fixed-term workflows, including product lists, positions, interest, subscribe, redeem, and change-min-rate intents. Use this skill whenever the user asks about Simple Earn, Uni, fixed-term, subscribe, redeem, positions, interest, or top APY. Trigger phrases include "Simple Earn", "Uni", "flexible earn", "fixed-term", "subscribe", "redeem", "positions", "interest", "top APY", or equivalent.4---56# Gate Exchange Simple Earn Skill78## General Rules910⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.11Do NOT select or call any tool until all rules are read. These rules have the highest priority.12→ Read [gate-runtime-rules.md](https://github.com/gate/gate-skills/blob/master/skills/gate-runtime-rules.md)13- **Only call MCP tools explicitly listed in this skill.** Tools not documented here must NOT be called, even if they14 exist in the MCP server.151617---1819## MCP Dependencies2021### Required MCP Servers22| MCP Server | Status |23|------------|--------|24| Gate (main) | ✅ Required |2526### MCP Tools Used2728**Query Operations (Read-only)**2930- cex_earn_change_uni_lend31- cex_earn_get_uni_currency32- cex_earn_get_uni_interest33- cex_earn_list_earn_fixed_term_history34- cex_earn_list_earn_fixed_term_lends35- cex_earn_list_earn_fixed_term_products36- cex_earn_list_earn_fixed_term_products_by_asset37- cex_earn_list_uni_rate38- cex_earn_list_user_uni_lends3940**Execution Operations (Write)**4142- cex_earn_create_earn_fixed_term_lend43- cex_earn_create_earn_fixed_term_pre_redeem44- cex_earn_create_uni_lend4546### Authentication47- API Key Required: Yes (see skill doc/runtime MCP deployment)48- Permissions: Earn:Write49- Get API Key: https://www.gate.io/myaccount/profile/api-key/manage5051### Installation Check52- Required: Gate (main)53- Install: Run installer skill for your IDE54 - Cursor: `gate-mcp-cursor-installer`55 - Codex: `gate-mcp-codex-installer`56 - Claude: `gate-mcp-claude-installer`57 - OpenClaw: `gate-mcp-openclaw-installer`5859## Trigger Conditions6061Activate this skill when the user expresses any of the following intents:62- Simple Earn, Uni, flexible earn, fixed earn, fixed-term, subscribe, redeem, positions, interest, top APY63- Any request involving Simple Earn subscribe, redeem, position query, interest query, fixed-term product list, or fixed-term history query6465## Prerequisites6667- **MCP Dependency**: Requires [gate-mcp](https://github.com/gate/gate-mcp) to be installed.68- **Authentication**: Position and write operations require API key authentication; rate and currency queries are public.69- **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."_7071## Supported Workflows7273### Flexible (Uni)74- Single-currency or all positions query75- Single-currency interest query76- Estimated APY query77- Subscribe (lend), redeem, and change min rate operations with user confirmation7879### Fixed-term80- Product list and product list by currency81- Subscribe and early redeem with user confirmation82- Current total positions and single-order detail queries83- History queries for subscribe, redeem, interest, and extra bonus8485## Available MCP Tools8687### Flexible (Uni)8889| Tool | Auth | Description | Reference |90|------|------|-------------|-----------|91| `cex_earn_list_uni_rate` | No | Estimated APY per currency (currency enumeration; use with get_uni_currency for limits) | `references/earn-uni-mcp-tools.md` |92| `cex_earn_get_uni_currency` | No | Single-currency details (min_rate for subscribe) | `references/earn-uni-mcp-tools.md` |93| `cex_earn_create_uni_lend` | Yes | Create lend (subscribe) or redeem | `references/earn-uni-mcp-tools.md` |94| `cex_earn_change_uni_lend` | Yes | Change min rate for lend | `references/earn-uni-mcp-tools.md` |95| `cex_earn_list_user_uni_lends` | Yes | User positions (optional currency filter) | `references/earn-uni-mcp-tools.md` |96| `cex_earn_get_uni_interest` | Yes | Single-currency cumulative interest | `references/earn-uni-mcp-tools.md` |97| `cex_earn_list_uni_rate` | No | Estimated APY per currency (for top APY) | `references/earn-uni-mcp-tools.md` |9899### Fixed-term100101| Tool | Auth | Description | Reference |102|------|------|-------------|-----------|103| `cex_earn_list_earn_fixed_term_products` | No | List all fixed-term products | `references/fixed-earn-mcp-tools.md` |104| `cex_earn_list_earn_fixed_term_products_by_asset` | No | List fixed-term products by currency | `references/fixed-earn-mcp-tools.md` |105| `cex_earn_create_earn_fixed_term_lend` | Yes | Create fixed-term lend (subscribe) | `references/fixed-earn-mcp-tools.md` |106| `cex_earn_create_earn_fixed_term_pre_redeem` | Yes | Early redeem fixed-term order | `references/fixed-earn-mcp-tools.md` |107| `cex_earn_list_earn_fixed_term_lends` | Yes | User fixed-term positions | `references/fixed-earn-mcp-tools.md` |108| `cex_earn_list_earn_fixed_term_history` | Yes | Fixed-term history records | `references/fixed-earn-mcp-tools.md` |109110## Routing Rules111112### Flexible requests113114| Case | User Intent | Signal Keywords | Action |115|------|-------------|-----------------|--------|116| 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`. |117| 2 | Redeem | "redeem", "redeem from Simple Earn" | Collect currency/amount and confirm, then call `cex_earn_create_uni_lend` with `type: redeem`. |118| 3 | Single-currency position | "my USDT Simple Earn", "position for one currency" | See `references/scenarios.md` flexible scenario section |119| 4 | All positions | "all Simple Earn positions", "total positions" | See `references/scenarios.md` flexible scenario section |120| 5 | Single-currency interest | "interest", "USDT interest" | See `references/scenarios.md` flexible scenario section |121| 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`. |122| 7 | Change lend settings (e.g. min rate) | "change min_rate", "change Simple Earn settings" | Collect currency/min_rate and confirm, then call `cex_earn_change_uni_lend`. |123| 8 | Auth failure (401/403) | MCP returns 401/403 | Do not expose keys; prompt user to configure Gate CEX API Key (earn). |124125### Fixed-term requests126127| Case | User Intent | Signal Keywords | Action |128|------|-------------|-----------------|--------|129| 1 | All fixed-term products | "fixed-term products" | See `references/scenarios.md` fixed-term section 1 and `references/fixed-earn-mcp-tools.md` §1 |130| 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 |131| 3 | Fixed-term subscribe | "subscribe 1 SOL fixed-term" | Collect currency/amount/term and confirm, then call `cex_earn_create_earn_fixed_term_lend`. |132| 4 | Fixed-term early redeem | "redeem order 5862443199" | Collect `order_id` and confirm, then call `cex_earn_create_earn_fixed_term_pre_redeem`. |133| 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`. |134| 6 | Single fixed-term order detail | "order 5862443199" | Call `cex_earn_list_earn_fixed_term_lends` with `order_type: "1"` and `order_id`. |135| 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. |136| 8 | Compliance / region restriction | region restriction questions | Return the standard compliance error message if the API rejects the request. |137| 9 | Compliance check failure | compliance validation failed | Do not retry or expose internal logic; return the API error message when available. |138139## Execution1401411. Identify user intent from the routing rules above.1422. 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.1433. For flexible or fixed-term read-only queries: read the matching scenario section in `references/scenarios.md` and follow the workflow there.1444. For auth failures: do not expose API keys or raw errors; prompt the user to configure API key / log in again.1455. If the intent is ambiguous, ask a clarifying question before routing.146147## Domain Knowledge148149### Flexible (Uni)150151- Subscribe (lend) means the user lends a specified amount of a currency to the Simple Earn pool.152- Redeem means the user redeems a specified amount from the pool.153- `min_rate` is the minimum acceptable hourly rate for the currency; required for lend.154- 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).155- **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.156157### Fixed-term158159- Subscribe uses only products with `status=2` (subscribing) and `show_status=2` (visible).160- Product list queries can be filtered by currency and product type.161- Fixed-term positions and history should be presented using the table formats defined in `references/scenarios.md` and `references/fixed-earn-mcp-tools.md`.162- Early redeem uses the fixed-term order ID and returns the redeemed principal.163164## Safety Rules165166- Always confirm currency, amount, and min_rate (for flexible lend) or currency/amount/term (for fixed-term subscribe) before calling write MCPs.167- Always confirm order_id before calling fixed-term early redeem.168- Do not recommend specific currencies or predict rates.169- Never expose API keys, internal endpoint URLs, or raw error traces to the user.170- Reject negative or zero amounts; validate that the currency is supported.171172## Error Handling173174| Condition | Response |175|-----------|----------|176| 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. |177| Flexible subscribe/redeem or fixed-term write request fails validation | Validate inputs, confirm details, then call the corresponding write tool. |178| Position or history query fails | "Unable to load positions/history. Please check your API key has earn/account read permission." |179| Empty positions or no rate data | "No positions found." / "No rate data available at the moment." |180181## Reference Files182183- Flexible (Uni) MCP tools: `references/earn-uni-mcp-tools.md`184- Fixed-term MCP tools: `references/fixed-earn-mcp-tools.md`185- Prompt examples and routing: `references/scenarios.md`