gate-exchange-earn
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGate Smart Earn Assistant
Gate Smart Earn 助手
General Rules
通用规则
本 L2 Skill 遵循公共运行时规则文件:
→ gate-runtime-rules.md(Gate Skills 通用运行时规则:CLI / 凭证检查、授权验证、版本检查)
→ gate-skills-disambiguation.md(L1/L2 Skill 路由消歧规则)
⚠️ STOP — You MUST read and strictly follow both documents above before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
- Only use the commands explicitly listed in this skill. Commands not documented here must NOT be run for these workflows, even if other interfaces expose them.
gate-cli
本 L2 Skill 遵循公共运行时规则文件:
→ gate-runtime-rules.md(Gate Skills 通用运行时规则:CLI / 凭证检查、授权验证、版本检查)
→ gate-skills-disambiguation.md(L1/L2 Skill 路由消歧规则)
⚠️ 停止操作 — 在继续之前,您必须阅读并严格遵守上述两份文档。
在未阅读所有规则之前,请勿选择或调用任何工具。这些规则具有最高优先级。
- 仅使用本Skill中明确列出的命令。即使其他接口提供了未在此处记录的命令,也不得在这些工作流中运行它们。
gate-cli
Regulatory and safety notices
监管与安全提示
- This skill is intended for users aged 18 or above with full civil capacity.
- Digital asset products involve significant risk and may result in partial or total loss. Yields are indicative, not guaranteed.
- The above is for informational purposes only and does not constitute investment, financial, tax, or legal advice. AI-assisted outputs are for general information only and do not constitute any representation, warranty, or guarantee by Gate.
- Users must comply with the laws and regulations of their jurisdiction. Gate operates under licenses in multiple jurisdictions; see https://www.gate.com/gategroup/legal/licenses for the Gate licenses page.
- This skill processes user prompts and queries; operational data is sent to the Gate API through on the user-controlled host. Do not paste API secrets into chat.
gate-cli
- 本Skill仅面向年满18周岁且具备完全民事行为能力的用户。
- 数字资产产品存在重大风险,可能导致部分或全部损失。收益率仅为指示性数值,不构成保证。
- 以上内容仅供参考,不构成投资、财务、税务或法律建议。AI辅助输出仅作一般信息用途,不代表Gate作出任何陈述、保证或承诺。
- 用户必须遵守其所在司法管辖区的法律法规。Gate在多个司法管辖区持有牌照运营;可访问https://www.gate.com/gategroup/legal/licenses查看Gate牌照页面。
- 本Skill处理用户的提示和查询;操作数据通过用户控制主机上的发送至Gate API。请勿在聊天中粘贴API密钥。
gate-cli
Skill Dependencies
Skill 依赖项
- Before any invocation: ensure
gate-cliis installed. Letgate-cli. IfGATE_CLI_BIN="${GATE_OPENCLAW_SKILLS_BIN:-$HOME/.openclaw/skills/bin}/gate-cli"(and[ ! -x "$GATE_CLI_BIN" ]also fails if you rely oncommand -v gate-cli), runPATH(e.g.setup.shfrom this skill directory), then re-check. Do not continue with authenticated earn reads or writes untilsh ./setup.shruns successfully (e.g.gate-cli).gate-cli --version - No MCP servers are required; execution is only for the commands listed below and in
gate-cli.references/gate-cli.md
- 在调用任何命令之前: 确保已安装
gate-cli。设置gate-cli。如果**GATE_CLI_BIN="${GATE_OPENCLAW_SKILLS_BIN:-$HOME/.openclaw/skills/bin}/gate-cli"(且若依赖[ ! -x "$GATE_CLI_BIN" ]则PATH也执行失败),请运行**command -v gate-cli(例如从本Skill目录执行setup.sh),然后重新检查。在sh ./setup.sh成功运行(例如执行gate-cli)之前,请勿继续进行需认证的理财读/写操作。gate-cli --version - 无需MCP服务器;仅使用执行以下及
gate-cli中列出的命令。references/gate-cli.md
gate-cli commands used
使用的gate-cli命令
Query operations (read-only)
gate-cli cex earn uni rategate-cli cex earn uni currencygate-cli cex earn uni recordsgate-cli cex earn uni interestgate-cli cex earn uni interest-recordsgate-cli cex earn fixed productsgate-cli cex earn fixed products-assetgate-cli cex earn fixed lendsgate-cli cex earn dual plansgate-cli cex earn dual ordersgate-cli cex earn dual balancegate-cli cex earn staking findgate-cli cex earn staking assetsgate-cli cex earn staking awardsgate-cli cex earn staking ordersgate-cli cex spot account listgate-cli cex spot account getgate-cli info compliance check-token-security
Execution operations (write; Action Draft + explicit Y required)
- (with
gate-cli cex earn uni lendfor lend/redeem semantics per CLI help)--json - (with
gate-cli cex earn uni change, e.g. auto renew)--json - (with
gate-cli cex earn fixed create)--json gate-cli cex earn dual placegate-cli cex earn staking swap
查询操作(只读)
gate-cli cex earn uni rategate-cli cex earn uni currencygate-cli cex earn uni recordsgate-cli cex earn uni interestgate-cli cex earn uni interest-recordsgate-cli cex earn fixed productsgate-cli cex earn fixed products-assetgate-cli cex earn fixed lendsgate-cli cex earn dual plansgate-cli cex earn dual ordersgate-cli cex earn dual balancegate-cli cex earn staking findgate-cli cex earn staking assetsgate-cli cex earn staking awardsgate-cli cex earn staking ordersgate-cli cex spot account listgate-cli cex spot account getgate-cli info compliance check-token-security
执行操作(写入;需操作草案+明确的Y确认)
- (配合
gate-cli cex earn uni lend实现申购/赎回语义,详见CLI帮助)--json - (配合
gate-cli cex earn uni change,例如自动续期)--json - (配合
gate-cli cex earn fixed create)--json gate-cli cex earn dual placegate-cli cex earn staking swap
Authentication
认证方式
- Interactive file setup: when and
GATE_API_KEYare not both set on the host, runGATE_API_SECRETto complete the wizard (see gate-cli).gate-cli config init - Env / flags: when both and
GATE_API_KEYare set, orGATE_API_SECRET/--api-keywhere supported, never ask the user to paste secrets into chat.--api-secret - Permissions: use an API key with scopes appropriate to earn and spot balance checks (e.g. earn read/write and spot read for pre-trade balance validation). Create a dedicated, least-privilege key when possible.
- Portal: manage keys outside the chat: https://www.gate.com/myaccount/profile/api-key/manage
- 交互式文件设置: 当主机上未同时设置**和
GATE_API_KEY时,运行GATE_API_SECRET**完成向导设置(参见gate-cli)。gate-cli config init - 环境变量/参数: 当已同时设置**和
GATE_API_KEY,或支持使用GATE_API_SECRET** / **--api-key**参数时,切勿要求用户在聊天中粘贴密钥。--api-secret - 权限: 使用具备理财和现货余额检查相应权限范围的API密钥(例如,用于交易前余额验证的理财读/写和现货读权限)。尽可能创建专用的最小权限密钥。
- 管理门户: 在聊天外部管理密钥:https://www.gate.com/myaccount/profile/api-key/manage
Installation check
安装检查
- Required: (install via
gate-cliwhen missing, per Skill Dependencies).setup.sh - GateClaw / OpenClaw: installs to
setup.shby default; add that directory to$HOME/.openclaw/skills/bin/gate-cliif agents invokePATHby name.gate-cli - Sanity check: confirm a lightweight read succeeds where applicable before writes (for example earn product listing commands after credentials resolve).
- 必备条件: (若缺失,根据Skill依赖项通过
gate-cli安装)。setup.sh - GateClaw / OpenClaw:默认安装至
setup.sh;若Agent通过名称调用$HOME/.openclaw/skills/bin/gate-cli,请将该目录添加至**gate-cli**环境变量。PATH - 完整性检查: 在执行写入操作前,确认适用的轻量读操作可成功执行(例如,在凭证验证通过后执行理财产品列表命令)。
Execution mode
执行模式
Read and strictly follow , then execute this skill's routing and case logic.
references/gate-cli.md- holds intent routing, signal model, and the case map.
SKILL.md - is the authoritative execution contract for
references/gate-cli.mdusage, pre-checks, confirmation gates, and degraded handling.gate-cli
阅读并严格遵守,然后执行本Skill的路由和案例逻辑。
references/gate-cli.md- 包含意图路由、信号模型和案例映射。
SKILL.md - 是
references/gate-cli.md使用、预检查、确认环节和降级处理的权威执行约定。gate-cli
Domain knowledge
领域知识
Logical capability groups (L1 alignment)
逻辑能力组(与L1对齐)
| Logical module | Role in this L2 skill |
|---|---|
| Simple Earn (flexible/fixed) | Product discovery, rates, positions, subscribe/redeem |
| Dual-currency (dual) | Plans, orders, balances, placement |
| Staking | Discover products, positions, rewards, participate |
| Spot account (subset) | Available balance checks before subscribe flows |
| Token security (info) | Optional risk signal when comparing products for a coin |
| 逻辑模块 | 在本L2 Skill中的作用 |
|---|---|
| Simple Earn(灵活/定期) | 产品发现、利率查询、持仓查看、申购/赎回 |
| 双币产品(dual) | 方案查询、订单查看、余额查询、下单 |
| 质押 | 产品发现、持仓查看、奖励查询、参与质押 |
| 现货账户(子集) | 申购流程前的可用余额检查 |
| 代币安全(info) | 对比某一币种的产品时提供可选风险信号 |
Four-dimensional intent signals (non-exclusive)
四维意图信号(非互斥)
| Signal | Dimension | Typical triggers | CLI subset (union with others) |
|---|---|---|---|
| S1 | Earn products | earn, Simple Earn, dual, staking, fixed, flexible | |
| S2 | Yield, risk, compare | APY, APR, risk, which is better, compare; product-side 收益 (what products or markets pay—rates, tiers, “这个产品收益怎么样”) | |
| S3 | Positions and PnL | my earn, how much earned, positions, history; 持仓 收益 (accrued interest/rewards on my holdings, earn PnL and history) | |
| S4 | Subscribe, redeem, configure | subscribe, redeem, join, auto renew, participate | balance reads then |
收益 keyword: When the query contains 收益 (or close synonyms such as 收益率 in a yield sense), split S2 vs S3 before activating both:
- 产品收益 (product yield): asks what a product or listing pays or how yields compare—APY/APR, annualized rate, which option is higher. → Activate S2 only for this angle; do not activate S3 solely from this cue.
- 持仓收益 (position / holdings yield): asks how much the user has earned on existing positions—accumulated interest, rewards received, “我赚了多少”, bucketed PnL. → Activate S3 only for this angle; do not activate S2 solely from this cue.
Other signals (e.g. S1, S4) still activate from their own cues independently.
Defaulting: broad earn browse with little specificity activates S1+S2. Vague “how much did I earn” style queries bias toward S3. If 收益 is present but product vs 持仓 is ambiguous, prefer one short clarifying question; if a default is required, bias toward S3 when the wording implies my holdings (e.g. 我 / 我的 / 累计 / 持仓) and toward S2 when it implies catalog or quoted rates (e.g. 哪个 / 年化 / 产品对比).
Execution mode: S1/S2/S3 without S4 is research-only (fetch and summarize). If S4 is active, use research plus Action Draft, then execute writes only after explicit Y in the immediately previous user turn.
| 信号 | 维度 | 典型触发词 | CLI子集(与其他信号的并集) |
|---|---|---|---|
| S1 | 理财产品 | earn、Simple Earn、dual、staking、fixed、flexible | |
| S2 | 收益率、风险、对比 | APY、APR、风险、哪个更好、对比;产品收益(指产品或标的的收益率——利率、层级、“这个产品收益怎么样”) | |
| S3 | 持仓与盈亏 | 我的理财、赚了多少、持仓、历史;持仓收益(用户现有持仓产生的累计利息/奖励、理财盈亏及历史,“我赚了多少”) | |
| S4 | 申购、赎回、配置 | 申购、赎回、加入、自动续期、参与 | 余额读取后执行 |
「收益」关键词说明: 当查询中包含收益(或含义相近的词,如收益率)时,需先区分S2与S3,再激活对应信号:
- 产品收益:询问某一产品或标的的收益率或对比不同产品的收益率——APY/APR、年化利率、哪个选项收益更高。→ 仅激活S2;不得仅以此线索激活S3。
- 持仓收益:询问用户自身现有持仓已赚取的收益——累计利息、已到账奖励、“我赚了多少”、分类盈亏。→ 仅激活S3;不得仅以此线索激活S2。
其他信号(如S1、S4)仍由各自的触发词独立激活。
默认规则: 宽泛的理财浏览且无明确指向时,激活S1+S2。模糊的“我赚了多少”类查询优先激活S3。若查询中包含收益但无法明确区分产品收益与持仓收益,优先提出一个简短的澄清问题;若需默认处理,当措辞暗示我的持仓(如我/我的/累计/持仓)时优先选择S3,当措辞暗示产品目录或报价利率(如哪个/年化/产品对比)时优先选择S2。
执行模式: 仅激活S1/S2/S3时为仅调研模式(获取并汇总信息)。若S4被激活,则需在调研基础上生成操作草案,仅在用户上一轮回复明确发送Y后执行写入操作。
Out of scope (route elsewhere)
超出范围(路由至其他Skill)
- Spot/perpetual/options trading execution (buy/sell on the book) → trading copilot / or futures skills.
gate-exchange-spot - New-listing research, listing alerts → dedicated listing/research skills.
- Broad market or single-coin non-earn research → market research / info research skills.
- Full account risk (liquidation, margin) unrelated to earn positions → account or unified-account skills.
- 现货/永续/期权交易执行(在订单簿上买卖)→ 交易助手 / 或期货类Skill。
gate-exchange-spot - 新上线币种调研、上线提醒→ 专用的上线/调研类Skill。
- 广泛市场或单一币种的非理财类调研→ 市场调研/信息调研类Skill。
- 与理财持仓无关的全账户风险(清算、保证金)→ 账户或统一账户类Skill。
Presentation rules
展示规则
- When the user asks for separate earn buckets (for example flexible interest vs staking rewards), present sections per product; do not merge into a single “total profit” line unless they explicitly ask for a total.
- For that style of query (including 「余币宝利息 / 质押奖励分别赚了多少」), default analysis/export window is the trailing ~three months: use through
now − 90 daysfornow/--from(Unix ms per CLI) on time-filterable reads (e.g.--to,uni interest-records). Say the window in the reply. Use full-history cumulative APIs or unpaginated totals only if the user asks for lifetime / 全部 / 累计历史等.uni records - For dual and similar products, present APY in human-readable percent form when the API returns a fraction (for example multiply by 100 for display when that matches CLI output semantics); state assumptions if ambiguous.
- Do not promise fixed returns; label estimates and floating yield clearly.
- 当用户要求分开查看不同理财类别(例如灵活理财利息与质押奖励)时,按产品类别分章节展示;除非用户明确要求总计,否则不得合并为单一“总收益”条目。
- 对于此类查询(包括**「余币宝利息/质押奖励分别赚了多少」),默认分析/导出窗口为过去约三个月:对支持时间过滤的读操作(如、
uni interest-records)使用uni records至now − 90 days**作为now/--from参数(CLI使用Unix毫秒时间戳)。在回复中说明时间窗口。仅当用户要求 lifetime / 全部 / 累计历史等时,才使用全历史累计API或无分页总计。--to - 对于双币及类似产品,当API返回小数形式的收益率时,转换为人类可读的百分比形式展示(例如,若与CLI输出语义一致则乘以100);若存在歧义需说明假设前提。
- 不得承诺固定收益;需明确标注预估收益率和浮动收益率。
Workflow
工作流
When the user asks for any earn-related operation, follow this sequence.
当用户询问任何理财相关操作时,请遵循以下流程。
Step 1: Route intent (earn vs non-earn)
步骤1:意图路由(理财 vs 非理财)
If the request is clearly not about earn, staking, dual, flexible/fixed savings, or idle-fund earn allocation, route to the appropriate non-earn skill instead of forcing earn CLI.
若请求明确与理财、质押、双币、灵活/定期储蓄或闲置资金理财配置无关,则路由至相应的非理财Skill,而非强制使用理财CLI命令。
Step 2: Extract parameters and activate signals
步骤2:提取参数并激活信号
Extract where possible: (simple / dual / staking), , , or , , and whether the user wants a write (S4). If the query contains 收益, apply the 产品收益 → S2 only / 持仓收益 → S3 only split before merging signal CLI sets.
product_typecurrencyamounttermdaysrisk_preference尽可能提取以下参数:(simple / dual / staking)、、、或、,以及用户是否需要写入操作(S4)。若查询中包含收益,在合并信号CLI集合前先执行产品收益→仅S2 / 持仓收益→仅S3的区分。
product_typecurrencyamounttermdaysrisk_preferenceStep 3: Build the CLI set
步骤3:构建CLI命令集合
- Union CLI from each activated signal (see Domain knowledge).
- Deduplicate identical command lines with identical arguments.
- Run independent reads in parallel when safe; serialize writes to one confirmed action at a time.
- 合并每个激活信号对应的CLI命令(参见领域知识)。
- 去重相同的命令行及参数。
- 在安全情况下并行执行独立的读操作;写入操作需序列化,一次仅执行一个已确认的操作。
Step 4: Preflight reads and synthesis
步骤4:预读检查与信息合成
- For writes (S4), always check available balance with or
gate-cli cex spot account listas appropriate before drafting.gate-cli cex spot account get - Follow §2.1 (
references/gate-cli.mdbefore required flags) for every leaf command.--help
- 对于写入操作(S4),在生成草案前务必通过或
gate-cli cex spot account list检查可用余额。gate-cli cex spot account get - 对每个叶子命令,遵循第2.1节(必填参数前先查看
references/gate-cli.md)。--help
Step 5: Action Draft and confirmation for any write (mandatory)
步骤5:操作草案与写入确认(必填)
Before , , , , or :
gate-cli cex earn uni lendgate-cli cex earn uni changegate-cli cex earn fixed creategate-cli cex earn dual placegate-cli cex earn staking swap- Present an Action Draft (product type, currency, amount, indicative APR or terms, material risks including dual exercise/settlement risk where relevant).
- Ask for Y to confirm or N to cancel. Treat confirmation as single-use; parameter or intent changes require a new draft.
- Execute the write only after Y in the immediately previous user turn.
- On failure, do not auto-retry writes; surface the error and suggest App/Web or corrected parameters.
在执行**、、、或**之前:
gate-cli cex earn uni lendgate-cli cex earn uni changegate-cli cex earn fixed creategate-cli cex earn dual placegate-cli cex earn staking swap- 展示操作草案(产品类型、币种、金额、指示性APR或期限、重大风险,包括双币产品的行权/结算风险)。
- 请求用户回复Y确认或N取消。确认仅单次有效;参数或意图变更需重新生成草案。
- 仅在用户上一轮回复明确发送Y后执行写入操作。
- 若执行失败,请勿自动重试写入操作;需显示错误信息并建议使用App/Web端或修正参数。
Step 6: Result and verification
步骤6:结果与验证
- After writes, verify with the matching read commands (records, orders, lends, staking orders) when useful.
- If a read fails, degrade gracefully: state which dimension is unavailable; never fabricate balances or APY.
- 写入操作完成后,可使用对应的读命令(records、orders、lends、staking orders)进行验证(如有用)。
- 若读操作失败,需优雅降级:说明哪一维度的数据不可用;切勿编造余额或APY。
Case routing map (1–15)
案例路由映射(1–15)
| Case | User intent | Core decision | Tool sequence (abbrev.) |
|---|---|---|---|
| 1 | Idle capital, low risk, best earn mix | Rank conservative products across types | Parallel: |
| 2 | Compare dual vs staking for a coin | Compare APR, lock/exercise narrative, optional | |
| 3 | Portfolio review and better products | Positions then market scan | |
| 4 | Staking detail and participate | Explain terms then optional | |
| 5 | Auto renew / roll strategy | Identify renewable rows then | Position reads → draft → |
| 6 | Flexible rate and min rate | Quote flexible parameters | |
| 7 | Fixed products for asset sorted by yield | List and sort fixed offers | |
| 8 | Staking discovery high yield | List and sort staking | |
| 9 | Dual plans filter (e.g. sell-high BTC) | Filter plans by currency and product type | |
| 10 | Cross-type APR comparison | Side-by-side table with footnotes on methodology | |
| 11 | Separate PnL by earn type | No cross-section totals unless asked; default window ~last 3 months ( | Sum/fetch per bucket: |
| 12 | Subscribe flexible (e.g. USDT) | Balance + rules then lend | spot balance + |
| 13 | Subscribe fixed term | Pick tenor from products | |
| 14 | Redeem flexible slice | Check redeemable then redeem | |
| 15 | Dual settled history | Filter settled dual orders and summarize by currency | |
| 案例 | 用户意图 | 核心决策 | 工具序列(缩写) |
|---|---|---|---|
| 1 | 闲置资金、低风险、最优理财组合 | 对各类保守型产品进行排名 | 并行执行: |
| 2 | 对比某一币种的双币产品与质押 | 对比APR、锁仓/行权说明,可选执行 | |
| 3 | 持仓回顾与更优产品推荐 | 先查看持仓再扫描市场 | |
| 4 | 质押详情与参与质押 | 说明条款后可选执行 | |
| 5 | 自动续期/滚动策略 | 识别可续期持仓,用户确认后执行 | 持仓读取 → 生成草案 → 确认Y后执行 |
| 6 | 灵活理财利率与最低利率 | 报价灵活理财参数 | |
| 7 | 按收益率排序的某一币种定期理财产品 | 列出并排序定期产品 | |
| 8 | 高收益质押产品发现 | 列出并排序质押产品 | |
| 9 | 双币方案筛选(如高价卖出BTC) | 按币种和产品类型筛选方案 | |
| 10 | 跨类型APR对比 | 生成带方法说明脚注的并排表格 | |
| 11 | 按理财类型拆分盈亏 | 除非用户要求,否则不生成跨类别总计;默认数据范围为过去约90天( | 按类别汇总/获取:灵活理财使用带时间过滤的 |
| 12 | 申购灵活理财(如USDT) | 余额检查+规则验证后执行申购 | 现货余额检查 + |
| 13 | 申购定期理财 | 从产品中选择期限 | |
| 14 | 赎回部分灵活理财 | 检查可赎回额度后执行赎回 | |
| 15 | 双币产品结算历史 | 筛选已结算双币订单并按币种汇总 | |
Judgment Logic Summary
判断逻辑汇总
| Condition | Action |
|---|---|
| Query contains 收益 | Classify 产品收益 → S2 only (that angle); 持仓收益 → S3 only (that angle); never activate both S2 and S3 solely from the same undifferentiated 收益 mention |
| User asks for earn yields, products, or comparisons without subscribe/redeem | S1/S2/S3 only; read documented |
| User asks to subscribe, redeem, join staking, place dual, or change auto renew | Activate S4; complete reads then Action Draft; no write without Y |
| User mixes trading (“market buy BTC”) with earn | Route trading to spot/trading skills; handle earn portions only if clearly separable |
| Skip or label “risk data unavailable”; do not block read-only browsing solely for that |
| User wants bucketed earn PnL | Use Case 11 pattern; separate sections; default data scope = ~last 90 days unless user asks for all-time |
| Stale or ambiguous confirmation | Re-issue Action Draft; do not execute writes |
| Multi-step writes (e.g. redeem then subscribe) | Require separate confirmation per write leg |
| 条件 | 操作 |
|---|---|
| 查询包含收益 | 分类为产品收益→仅激活S2;持仓收益→仅激活S3;不得仅因同一未区分的「收益」提及同时激活S2和S3 |
| 用户询问理财收益率、产品或对比,未提及申购/赎回 | 仅激活S1/S2/S3;执行已记录的 |
| 用户要求申购、赎回、参与质押、下单双币产品或更改自动续期 | 激活S4;完成读操作后生成操作草案;无Y确认则不执行写入 |
| 用户混合交易(如“市价买入BTC”)与理财请求 | 将交易请求路由至现货/交易类Skill;仅处理可明确分离的理财部分 |
| 跳过该操作或标注“风险数据不可用”;不得仅因该问题阻止只读浏览 |
| 用户要求按类别拆分理财盈亏 | 使用案例11的模式;分章节展示;默认数据范围为过去约90天,除非用户要求全历史数据 |
| 确认信息过期或模糊 | 重新生成操作草案;不执行写入操作 |
| 多步写入操作(如赎回后申购) | 每一步写入操作都需单独确认 |
Report template
报告模板
markdown
undefinedmarkdown
undefinedEarn Result
理财结果
| Item | Value |
|---|---|
| Scenario | {case_name} |
| Product | {product_type} |
| Currency | {currency} |
| Status | {status} |
| Key metrics | {apr_or_amounts} |
{decision_text}
Example `decision_text`:
- `Action Draft: Flexible USDT earn, amount 2000 USDT, indicative APR {x}%, risks: floating yield. Reply Y to confirm or N to cancel.`
- `Read-only summary: top fixed USDT terms sorted by APR (see table). No subscription executed.`
- `Not executed: available balance below requested amount.`| 项目 | 数值 |
|---|---|
| 场景 | {case_name} |
| 产品 | {product_type} |
| 币种 | {currency} |
| 状态 | {status} |
| 核心指标 | {apr_or_amounts} |
{decision_text}
示例`decision_text`:
- `操作草案:USDT灵活理财,金额2000 USDT,指示性APR {x}%,风险:收益率浮动。回复Y确认或N取消。`
- `只读汇总:按APR排序的USDT定期顶级产品(见表格)。未执行申购操作。`
- `未执行:可用余额低于请求金额。`Error handling
错误处理
| Error type | Typical cause | Handling strategy |
|---|---|---|
| Insufficient balance | Not enough spot available for subscription | Show shortfall; suggest lower amount or funding |
| Product unavailable | Tenor sold out or currency unsupported | Explain; refresh product list |
| Auth or permission failure | Key missing earn or spot read scope | Stop writes; guide credential and scope fix |
| Missing confirmation | User did not send Y | Keep draft pending; reads only |
| Stale confirmation | Parameters changed since Y | Invalidate; re-draft |
| CLI partial failure | One parallel read fails | Continue other dimensions; label gaps |
| Write failure | Exchange rejects order | No auto-retry; show message; suggest App/Web |
| 错误类型 | 典型原因 | 处理策略 |
|---|---|---|
| 余额不足 | 申购所需现货余额不足 | 显示缺口;建议降低金额或充值 |
| 产品不可用 | 期限售罄或币种不支持 | 说明原因;刷新产品列表 |
| 认证或权限失败 | 密钥缺失理财或现货读权限 | 停止写入操作;指导用户修复凭证和权限 |
| 缺少确认 | 用户未发送Y | 保留草案等待确认;仅执行读操作 |
| 确认信息过期 | 确认后参数已变更 | 作废原确认;重新生成草案 |
| CLI部分失败 | 某一并行读操作失败 | 继续执行其他维度的操作;标注缺失的数据 |
| 写入失败 | 交易所拒绝订单 | 不自动重试;显示错误信息;建议使用App/Web端 |
Safety rules
安全规则
- Never call earn write commands without a prior Action Draft and explicit Y in the immediately previous user turn.
- Dual-currency products carry exercise/settlement risk; state that plainly before any confirmation.
dual place - Do not guarantee returns or imply zero risk.
- Invalidate confirmation after any material change to amount, currency, product, or side.
- Prefer for machine parsing when the host workflow requires it (optional per operator policy).
--format json
- 若无事先的操作草案及用户上一轮回复明确发送的Y,切勿执行理财写入命令。
- 双币产品存在行权/结算风险;在执行任何确认前需明确说明该风险。
dual place - 不得保证收益或暗示零风险。
- 若金额、币种、产品或方向发生重大变更,原确认信息作废。
- 若主机工作流需要,优先使用进行机器解析(可根据操作员政策选择是否启用)。
--format json
Cross-skill workflows
跨Skill工作流
- Fund spot then earn: user may need spot transfer or deposit skills first if spot balance is insufficient (this skill only checks and reports).
- Trading after redeem: after successful redeem to spot, trading skills may apply; do not conflate order placement with earn writes.
- 先充值现货再理财: 若现货余额不足,用户可能需要先使用现货转账或充值类Skill(本Skill仅检查并报告余额情况)。
- 赎回后交易: 成功赎回至现货账户后,可使用交易类Skill;不得将下单操作与理财写入操作混淆。