gate-exchange-earn

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Gate 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
    gate-cli
    commands explicitly listed in this skill.
    Commands not documented here must NOT be run for these workflows, even if other interfaces expose them.

本 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
    gate-cli
    on the user-controlled host. Do not paste API secrets into chat.
  • 本Skill仅面向年满18周岁且具备完全民事行为能力的用户。
  • 数字资产产品存在重大风险,可能导致部分或全部损失。收益率仅为指示性数值,不构成保证。
  • 以上内容仅供参考,不构成投资、财务、税务或法律建议。AI辅助输出仅作一般信息用途,不代表Gate作出任何陈述、保证或承诺。
  • 用户必须遵守其所在司法管辖区的法律法规。Gate在多个司法管辖区持有牌照运营;可访问https://www.gate.com/gategroup/legal/licenses查看Gate牌照页面。
  • 本Skill处理用户的提示和查询;操作数据通过用户控制主机上的
    gate-cli
    发送至Gate API。请勿在聊天中粘贴API密钥。

Skill Dependencies

Skill 依赖项

  • Before any
    gate-cli
    invocation:
    ensure
    gate-cli
    is installed. Let
    GATE_CLI_BIN="${GATE_OPENCLAW_SKILLS_BIN:-$HOME/.openclaw/skills/bin}/gate-cli"
    . If
    [ ! -x "$GATE_CLI_BIN" ]
    (and
    command -v gate-cli
    also fails if you rely on
    PATH
    ), run
    setup.sh
    (e.g.
    sh ./setup.sh
    from this skill directory), then re-check. Do not continue with authenticated earn reads or writes until
    gate-cli
    runs successfully (e.g.
    gate-cli --version
    ).
  • No MCP servers are required; execution is
    gate-cli
    only
    for the commands listed below and in
    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
    也执行失败),请
    运行**
    setup.sh
    (例如从本Skill目录执行
    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 rate
  • gate-cli cex earn uni currency
  • gate-cli cex earn uni records
  • gate-cli cex earn uni interest
  • gate-cli cex earn uni interest-records
  • gate-cli cex earn fixed products
  • gate-cli cex earn fixed products-asset
  • gate-cli cex earn fixed lends
  • gate-cli cex earn dual plans
  • gate-cli cex earn dual orders
  • gate-cli cex earn dual balance
  • gate-cli cex earn staking find
  • gate-cli cex earn staking assets
  • gate-cli cex earn staking awards
  • gate-cli cex earn staking orders
  • gate-cli cex spot account list
  • gate-cli cex spot account get
  • gate-cli info compliance check-token-security
Execution operations (write; Action Draft + explicit Y required)
  • gate-cli cex earn uni lend
    (with
    --json
    for lend/redeem semantics per CLI help)
  • gate-cli cex earn uni change
    (with
    --json
    , e.g. auto renew)
  • gate-cli cex earn fixed create
    (with
    --json
    )
  • gate-cli cex earn dual place
  • gate-cli cex earn staking swap
查询操作(只读)
  • gate-cli cex earn uni rate
  • gate-cli cex earn uni currency
  • gate-cli cex earn uni records
  • gate-cli cex earn uni interest
  • gate-cli cex earn uni interest-records
  • gate-cli cex earn fixed products
  • gate-cli cex earn fixed products-asset
  • gate-cli cex earn fixed lends
  • gate-cli cex earn dual plans
  • gate-cli cex earn dual orders
  • gate-cli cex earn dual balance
  • gate-cli cex earn staking find
  • gate-cli cex earn staking assets
  • gate-cli cex earn staking awards
  • gate-cli cex earn staking orders
  • gate-cli cex spot account list
  • gate-cli cex spot account get
  • gate-cli info compliance check-token-security
执行操作(写入;需操作草案+明确的Y确认)
  • gate-cli cex earn uni lend
    (配合
    --json
    实现申购/赎回语义,详见CLI帮助)
  • gate-cli cex earn uni change
    (配合
    --json
    ,例如自动续期)
  • gate-cli cex earn fixed create
    (配合
    --json
  • gate-cli cex earn dual place
  • gate-cli cex earn staking swap

Authentication

认证方式

  • Interactive file setup: when
    GATE_API_KEY
    and
    GATE_API_SECRET
    are not both set on the host, run
    gate-cli config init
    to complete the wizard (see gate-cli).
  • Env / flags: when both
    GATE_API_KEY
    and
    GATE_API_SECRET
    are set, or
    --api-key
    /
    --api-secret
    where supported, never ask the user to paste secrets into chat.
  • 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 config init
    **完成向导设置(参见gate-cli)。
  • 环境变量/参数: 当已同时设置**
    GATE_API_KEY
    GATE_API_SECRET
    ,或支持使用
    --api-key
    ** / **
    --api-secret
    **参数时,切勿要求用户在聊天中粘贴密钥。
  • 权限: 使用具备理财和现货余额检查相应权限范围的API密钥(例如,用于交易前余额验证的理财读/写和现货读权限)。尽可能创建专用的最小权限密钥。
  • 管理门户: 在聊天外部管理密钥:https://www.gate.com/myaccount/profile/api-key/manage

Installation check

安装检查

  • Required:
    gate-cli
    (install via
    setup.sh
    when missing, per Skill Dependencies).
  • GateClaw / OpenClaw:
    setup.sh
    installs to
    $HOME/.openclaw/skills/bin/gate-cli
    by default; add that directory to
    PATH
    if agents invoke
    gate-cli
    by name.
  • Sanity check: confirm a lightweight read succeeds where applicable before writes (for example earn product listing commands after credentials resolve).
  • 必备条件:
    gate-cli
    (若缺失,根据Skill依赖项通过
    setup.sh
    安装)。
  • GateClaw / OpenClaw:
    setup.sh
    默认安装至
    $HOME/.openclaw/skills/bin/gate-cli
    ;若Agent通过名称调用
    gate-cli
    ,请将该目录添加至**
    PATH
    **环境变量。
  • 完整性检查: 在执行写入操作前,确认适用的轻量读操作可成功执行(例如,在凭证验证通过后执行理财产品列表命令)。

Execution mode

执行模式

Read and strictly follow
references/gate-cli.md
, then execute this skill's routing and case logic.
  • SKILL.md
    holds intent routing, signal model, and the case map.
  • references/gate-cli.md
    is the authoritative execution contract for
    gate-cli
    usage, pre-checks, confirmation gates, and degraded handling.
阅读并严格遵守
references/gate-cli.md
,然后执行本Skill的路由和案例逻辑。
  • SKILL.md
    包含意图路由、信号模型和案例映射。
  • references/gate-cli.md
    gate-cli
    使用、预检查、确认环节和降级处理的权威执行约定。

Domain knowledge

领域知识

Logical capability groups (L1 alignment)

逻辑能力组(与L1对齐)

Logical moduleRole in this L2 skill
Simple Earn (flexible/fixed)Product discovery, rates, positions, subscribe/redeem
Dual-currency (dual)Plans, orders, balances, placement
StakingDiscover 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)

四维意图信号(非互斥)

SignalDimensionTypical triggersCLI subset (union with others)
S1Earn productsearn, Simple Earn, dual, staking, fixed, flexible
cex earn
product/discovery commands
S2Yield, risk, compareAPY, APR, risk, which is better, compare; product-side 收益 (what products or markets pay—rates, tiers, “这个产品收益怎么样”)
dual plans
,
staking find
,
check-token-security
S3Positions and PnLmy earn, how much earned, positions, history; 持仓 收益 (accrued interest/rewards on my holdings, earn PnL and history)
uni records
,
dual orders
,
fixed lends
,
staking orders
,
staking assets
S4Subscribe, redeem, configuresubscribe, redeem, join, auto renew, participatebalance reads then
uni lend
,
fixed create
,
dual place
,
staking swap
,
uni change
收益 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
cex earn
产品/发现类命令
S2收益率、风险、对比APY、APR、风险、哪个更好、对比;产品收益(指产品或标的的收益率——利率、层级、“这个产品收益怎么样”)
dual plans
staking find
check-token-security
S3持仓与盈亏我的理财、赚了多少、持仓、历史;持仓收益(用户现有持仓产生的累计利息/奖励、理财盈亏及历史,“我赚了多少”)
uni records
dual orders
fixed lends
staking orders
staking assets
S4申购、赎回、配置申购、赎回、加入、自动续期、参与余额读取后执行
uni lend
fixed create
dual place
staking swap
uni change
「收益」关键词说明: 当查询中包含收益(或含义相近的词,如收益率)时,需先区分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 /
    gate-exchange-spot
    or futures skills.
  • 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.
  • 现货/永续/期权交易执行(在订单簿上买卖)→ 交易助手 /
    gate-exchange-spot
    或期货类Skill。
  • 新上线币种调研、上线提醒→ 专用的上线/调研类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
    now − 90 days
    through
    now
    for
    --from
    /
    --to
    (Unix ms per CLI) on time-filterable reads (e.g.
    uni interest-records
    ,
    uni records
    ). Say the window in the reply. Use full-history cumulative APIs or unpaginated totals only if the user asks for lifetime / 全部 / 累计历史等.
  • 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
    /
    --to
    参数(CLI使用Unix毫秒时间戳)。在回复中说明时间窗口。仅当用户要求 lifetime / 全部 / 累计历史等时,才使用全历史累计API或无分页总计。
  • 对于双币及类似产品,当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:
product_type
(simple / dual / staking),
currency
,
amount
,
term
or
days
,
risk_preference
, 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_type
(simple / dual / staking)、
currency
amount
term
days
risk_preference
,以及用户是否需要写入操作(S4)。若查询中包含收益,在合并信号CLI集合前先执行产品收益→仅S2 / 持仓收益→仅S3的区分。

Step 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
    gate-cli cex spot account list
    or
    gate-cli cex spot account get
    as appropriate before drafting.
  • Follow
    references/gate-cli.md
    §2.1 (
    --help
    before required flags) for every leaf command.
  • 对于写入操作(S4),在生成草案前务必通过
    gate-cli cex spot account list
    gate-cli cex spot account get
    检查可用余额
  • 对每个叶子命令,遵循
    references/gate-cli.md
    第2.1节(必填参数前先查看
    --help
    )。

Step 5: Action Draft and confirmation for any write (mandatory)

步骤5:操作草案与写入确认(必填)

Before
gate-cli cex earn uni lend
,
gate-cli cex earn uni change
,
gate-cli cex earn fixed create
,
gate-cli cex earn dual place
, or
gate-cli cex earn staking swap
:
  1. Present an Action Draft (product type, currency, amount, indicative APR or terms, material risks including dual exercise/settlement risk where relevant).
  2. Ask for Y to confirm or N to cancel. Treat confirmation as single-use; parameter or intent changes require a new draft.
  3. Execute the write only after Y in the immediately previous user turn.
  4. On failure, do not auto-retry writes; surface the error and suggest App/Web or corrected parameters.
在执行**
gate-cli cex earn uni lend
gate-cli cex earn uni change
gate-cli cex earn fixed create
gate-cli cex earn dual place
gate-cli cex earn staking swap
**之前:
  1. 展示操作草案(产品类型、币种、金额、指示性APR或期限、重大风险,包括双币产品的行权/结算风险)。
  2. 请求用户回复Y确认或N取消。确认仅单次有效;参数或意图变更需重新生成草案。
  3. 仅在用户上一轮回复明确发送Y后执行写入操作。
  4. 若执行失败,请勿自动重试写入操作;需显示错误信息并建议使用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)

CaseUser intentCore decisionTool sequence (abbrev.)
1Idle capital, low risk, best earn mixRank conservative products across typesParallel:
fixed products
,
fixed products-asset
,
uni rate
,
uni currency
,
dual plans
→ synthesized report
2Compare dual vs staking for a coinCompare APR, lock/exercise narrative, optional
check-token-security
dual plans
+
staking find
+ optional
check-token-security
3Portfolio review and better productsPositions then market scan
uni records
,
dual orders
,
fixed lends
,
staking orders
→ recommendations; writes only after draft + Y
4Staking detail and participateExplain terms then optional
staking swap
staking find
+ spot balance read → draft →
staking swap
after Y
5Auto renew / roll strategyIdentify renewable rows then
uni change
if user confirms
Position reads → draft →
uni change --json
after Y
6Flexible rate and min rateQuote flexible parameters
uni rate
,
uni currency
7Fixed products for asset sorted by yieldList and sort fixed offers
fixed products-asset
8Staking discovery high yieldList and sort staking
staking find
9Dual plans filter (e.g. sell-high BTC)Filter plans by currency and product type
dual plans
10Cross-type APR comparisonSide-by-side table with footnotes on methodology
uni rate
,
uni currency
,
fixed products-asset
,
staking find
11Separate PnL by earn typeNo cross-section totals unless asked; default window ~last 3 months (
--from
/
--to
≈ 90d); lifetime only on explicit ask
Sum/fetch per bucket:
uni interest-records
(+
uni records
if needed) with time filter for flexible;
staking awards
(paginate; filter by row timestamps if CLI has no
--from
/
--to
);
staking assets
for position snapshot;
uni interest
only for lifetime per-currency totals when user asks
12Subscribe flexible (e.g. USDT)Balance + rules then lendspot balance +
uni currency
→ draft →
uni lend --json
after Y
13Subscribe fixed termPick tenor from products
fixed products-asset
+ spot balance → draft →
fixed create --json
after Y
14Redeem flexible sliceCheck redeemable then redeem
uni records
→ draft →
uni lend --json
redeem after Y
15Dual settled historyFilter settled dual orders and summarize by currency
dual orders
,
dual balance
案例用户意图核心决策工具序列(缩写)
1闲置资金、低风险、最优理财组合对各类保守型产品进行排名并行执行:
fixed products
fixed products-asset
uni rate
uni currency
dual plans
→ 生成综合报告
2对比某一币种的双币产品与质押对比APR、锁仓/行权说明,可选执行
check-token-security
dual plans
+
staking find
+ 可选
check-token-security
3持仓回顾与更优产品推荐先查看持仓再扫描市场
uni records
dual orders
fixed lends
staking orders
→ 生成推荐;仅在草案+Y确认后执行写入操作
4质押详情与参与质押说明条款后可选执行
staking swap
staking find
+ 现货余额读取 → 生成草案 → 确认Y后执行
staking swap
5自动续期/滚动策略识别可续期持仓,用户确认后执行
uni change
持仓读取 → 生成草案 → 确认Y后执行
uni change --json
6灵活理财利率与最低利率报价灵活理财参数
uni rate
uni currency
7按收益率排序的某一币种定期理财产品列出并排序定期产品
fixed products-asset
8高收益质押产品发现列出并排序质押产品
staking find
9双币方案筛选(如高价卖出BTC)按币种和产品类型筛选方案
dual plans
10跨类型APR对比生成带方法说明脚注的并排表格
uni rate
uni currency
fixed products-asset
staking find
11按理财类型拆分盈亏除非用户要求,否则不生成跨类别总计;默认数据范围为过去约90天
--from
/
--to
≈90天);仅在明确要求时使用全历史数据
按类别汇总/获取:灵活理财使用带时间过滤的
uni interest-records
(必要时加
uni records
);质押奖励使用
staking awards
(分页;若CLI无
--from
/
--to
则按行时间戳过滤);
staking assets
用于持仓快照;仅当用户要求时,使用
uni interest
获取单币种全历史累计收益
12申购灵活理财(如USDT)余额检查+规则验证后执行申购现货余额检查 +
uni currency
→ 生成草案 → 确认Y后执行
uni lend --json
13申购定期理财从产品中选择期限
fixed products-asset
+ 现货余额检查 → 生成草案 → 确认Y后执行
fixed create --json
14赎回部分灵活理财检查可赎回额度后执行赎回
uni records
→ 生成草案 → 确认Y后执行
uni lend --json
赎回
15双币产品结算历史筛选已结算双币订单并按币种汇总
dual orders
dual balance

Judgment Logic Summary

判断逻辑汇总

ConditionAction
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/redeemS1/S2/S3 only; read documented
gate-cli
commands; no writes
User asks to subscribe, redeem, join staking, place dual, or change auto renewActivate S4; complete reads then Action Draft; no write without Y
User mixes trading (“market buy BTC”) with earnRoute trading to spot/trading skills; handle earn portions only if clearly separable
check-token-security
returns empty or errors
Skip or label “risk data unavailable”; do not block read-only browsing solely for that
User wants bucketed earn PnLUse Case 11 pattern; separate sections; default data scope = ~last 90 days unless user asks for all-time
Stale or ambiguous confirmationRe-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;执行已记录的
gate-cli
命令;不执行写入操作
用户要求申购、赎回、参与质押、下单双币产品或更改自动续期激活S4;完成读操作后生成操作草案无Y确认则不执行写入
用户混合交易(如“市价买入BTC”)与理财请求将交易请求路由至现货/交易类Skill;仅处理可明确分离的理财部分
check-token-security
返回空或错误
跳过该操作或标注“风险数据不可用”;不得仅因该问题阻止只读浏览
用户要求按类别拆分理财盈亏使用案例11的模式;分章节展示;默认数据范围为过去约90天,除非用户要求全历史数据
确认信息过期或模糊重新生成操作草案;不执行写入操作
多步写入操作(如赎回后申购)每一步写入操作都需单独确认

Report template

报告模板

markdown
undefined
markdown
undefined

Earn Result

理财结果

ItemValue
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 typeTypical causeHandling strategy
Insufficient balanceNot enough spot available for subscriptionShow shortfall; suggest lower amount or funding
Product unavailableTenor sold out or currency unsupportedExplain; refresh product list
Auth or permission failureKey missing earn or spot read scopeStop writes; guide credential and scope fix
Missing confirmationUser did not send YKeep draft pending; reads only
Stale confirmationParameters changed since YInvalidate; re-draft
CLI partial failureOne parallel read failsContinue other dimensions; label gaps
Write failureExchange rejects orderNo 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
    dual place
    confirmation.
  • Do not guarantee returns or imply zero risk.
  • Invalidate confirmation after any material change to amount, currency, product, or side.
  • Prefer
    --format json
    for machine parsing when the host workflow requires it (optional per operator policy).
  • 若无事先的操作草案及用户上一轮回复明确发送的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;不得将下单操作与理财写入操作混淆。