返回顶部
g

gate-exchange-assets交易所资产查询

Gate multi-account asset and balance query skill. Use when the user asks to check total assets, account balance, or specific coin holdings across all accounts. Triggers on 'total assets', 'my balance', 'how many BTC do I have'. Read-only.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.5
安全检测
已通过
314
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

gate-exchange-assets

Gate 交易所资产助手

通用规则

⚠️ 停止 — 在继续之前,您必须阅读并严格遵守共享的运行时规则。
在阅读所有规则之前,请勿选择或调用任何工具。这些规则具有最高优先级。
→ 阅读 ./references/gate-runtime-rules.md

  • - 仅调用本技能中明确列出的 MCP 工具。 即使 MCP 服务器中存在未在此处记录的工具,也禁止调用。



MCP 依赖

必需的 MCP 服务器
MCP 服务器状态
Gate (主)✅ 必需

使用的 MCP 工具

查询操作(只读)

  • - cexdclistdcaccounts
  • cexearnlistdualbalance
  • cexearnlistdualorders
  • cexearnliststructuredorders
  • cexfxgetfxaccounts
  • cexmarginlistmarginaccounts
  • cexoptionslistoptionsaccount
  • cexspotgetspotaccounts
  • cexspotlistspotaccountbook
  • cextradfiqueryuserassets
  • cexunifiedgetunifiedaccounts
  • cexwalletgettotal_balance

身份验证

  • - 凭证来源:本地 Gate MCP 部署(GATEAPIKEY,GATEAPISECRET)
  • 是否需要 API 密钥:是
  • 权限:交割:读取,理财:读取,外汇:读取,杠杆:读取,期权:读取,现货:读取,TradFi:读取,统一账户:读取,钱包:读取
  • 切勿要求用户将密钥粘贴到聊天中;仅依赖已配置的 MCP 会话。
  • API 密钥配置参考:https://www.gate.com/myaccount/profile/api-key/manage(在本地 MCP 设置需要时,在聊天之外创建或轮换密钥)。

安装检查

  • - 必需:Gate (主)
  • 安装:在继续之前,使用当前主机 IDE 的本地 Gate MCP 安装流程。
  • 仅在 Gate MCP 会话配置了上述凭证后继续;不要切换到浏览器身份验证或要求用户将密钥粘贴到聊天中。

MCP 模式

阅读并严格遵守 references/mcp.md,然后执行本技能的资产查询工作流程。

  • - SKILL.md 负责意图路由和渲染规则。
  • references/mcp.md 是用于多账户数据收集、标准化和降级输出处理的权威 MCP 执行层。

领域知识

MCP 工具映射(Gate gate-mcp)

MCP 工具用途关键字段
cexwalletgettotalbalance总余额(所有子账户,约1分钟缓存)total.amount, details (spot/futures/delivery/finance/quant/memebox/options/payment/margin/crossmargin)
cexspotgetspotaccounts
现货余额(按币种筛选) | currency, available, locked | | cexunifiedgetunifiedaccounts | 统一账户(单一/全仓/投资组合保证金) | balances, unifiedaccounttotal, margin_mode | | cexfxgetfxaccounts | 永续合约(结算币种=usdt 或 btc) | total, unrealised_pnl, available, point, bonus | | cexdclistdcaccounts | 交割合约(结算币种=usdt) | total, unrealised_pnl, available | | cexoptionslistoptionsaccount | 期权 | totalvalue, unrealisedpnl, available | | cexmarginlistmarginaccounts | 逐仓杠杆 | currency_pair, mmr, base/quote (available/locked/borrowed/interest) | | cextradfiqueryuserassets | TradFi 资产 | USDx 余额,保证金 | | cexearnlistdualbalance, cexearnlistdualorders, cexearnliststructuredorders | 理财 | 灵活理财 / 双币投资 / 结构化产品 | | cexspotlistspotaccount_book | 现货账户账单/分类账 | 账目条目 |

账户名称映射(details 键 → 显示名称)

API 键显示名称
spot现货账户 / 交易账户
futures
合约账户(USDT 永续) | | delivery | 交割合约账户 | | options | 期权账户 | | finance | 理财账户 | | quant | 量化/机器人账户 | | meme_box | Alpha 账户 | | margin | 逐仓杠杆账户 | | cross_margin | 全仓杠杆账户 | | payment | 支付账户(不计入总资产) |

关键规则

  • - 只读。不进行交易、转账或下单。
  • TradFi / 支付:USDx 和支付资产不计入 CEX 总资产;单独显示。
  • 统一账户:当保证金模式为 classic/cross_margin/portfolio 时,现货可能合并到交易账户中。不要使用高级模式、S1/S2等内部术语。
  • 交易对格式:合约使用无斜杠(BTCUSDT);现货/杠杆使用斜杠(BTC/USDT)。
  • 精度:法币估值保留 2 位小数;小额资产(<$0.01)显示为 <$0.01;理财昨日盈亏最多保留 8 位小数。

案例路由映射

I. 总资产与概览(案例 1)

案例触发短语MCP 工具输出
1我有多少钱,显示我的 CEX 总资产,账户资产分布,账户概览,查看我的余额cexwalletgettotalbalance currency=USDT总金额,账户分布,币种分布;如有 TradFi/支付则单独列出

II. 特定币种(案例 2)

案例触发短语MCP 工具输出
2我有多少 BTC,我有多少 USDT并发:cexspotgetspotaccounts,cexunifiedgetunifiedaccounts,cexfxgetfxaccounts,cexdclistdcaccounts,cexmarginlistmarginaccounts,cexearnlistdualbalance 等持有的 {COIN} 总数,按账户分布

III. 特定账户 + 币种(案例 3)

案例触发短语MCP 工具输出
3我的现货账户里有多少 USDT,我的现货账户里有多少 BTCcexspotgetspotaccounts currency={COIN} 或 cexunifiedgetunifiedaccounts currency={COIN}账户名称,总计,可用,冻结

IV. 子账户查询(案例 4–15)

案例账户触发短语MCP 工具
4现货我的现货账户里有什么,显示我的现货账户资产cexspotgetspotaccounts 或 cexunifiedgetunifiedaccounts
5
合约 | 合约账户有多少钱,USDT 永续,BTC 永续,交割 | cexfxgetfxaccounts settle=usdt/btc,cexdclistdcaccounts | | 6 | 交易(统一) | 交易账户有多少钱,统一账户有多少钱 | cexunifiedgetunifiedaccounts | | 7 | 期权 | 期权账户有多少钱,显示我的期权资产 | cexoptionslistoptionsaccount 或 cexunifiedgetunifiedaccounts | | 8 | 理财 | 理财账户有多少钱,显示我的理财账户资产 | cexearnlistdualbalance,cexearnlistdualorders,cexearnliststructuredorders | | 9 | Alpha | Alpha 账户有多少钱,显示我的 Alpha 资产 | cexwalletgettotalbalance details.meme_box | | 12 | 逐仓杠杆 | 逐仓杠杆账户有多少钱,显示我的逐仓杠杆资产 | cexmarginlistmarginaccounts | | 15 | TradFi | TradFi 账户有多少钱,

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gate-exchange-assets-1776108968 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gate-exchange-assets-1776108968 技能

通过命令行安装

skillhub install gate-exchange-assets-1776108968

下载

⬇ 下载 gate-exchange-assets v1.0.5(免费)

文件大小: 6.99 KB | 发布时间: 2026-4-15 12:50

v1.0.5 最新 2026-4-15 12:50
- Runtime rules location updated: Now references `./references/gate-runtime-rules.md` (was `../gate-runtime-rules.md`).
- Added `metadata` block for compatibility, including `openclaw` environment requirements and homepage link.
- Removed unused files: `CHANGELOG.md`, `README.md`, and `references/scenarios.md`.
- Added `references/gate-runtime-rules.md` to document runtime guidelines.
- No changes to query logic or API surface.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部