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.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Skill metadata
Parsed from SKILL.md frontmatter.
Declared agentsclawdbot
More metadata
openclaw
{"emoji":"💱","os":["darwin","linux"],"primaryEnv":"GATE_API_KEY","requires":{"bins":["gate-cli"],"env":["GATE_API_KEY","GATE_API_SECRET"]},"install":{"0":"kind: download","os":["darwin"],"url":"https:\/\/github.com\/gate\/gate-cli\/releases\/download\/v0.6.2\/gate-cli_0.6.2_darwin_arm64.tar.gz","bins":["gate-cli"],"targetDir":"bin","label":"Download gate-cli (macOS Apple Silicon)","1":"kind: download","2":"kind: download","3":"kind: download"}}
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md14,166 B
docsSUMMARY.md266 B
History
First recorded snapshot · 0 installs
SKILL.md
Resolving gate-cli (binary path)
Resolve gate-cli in order: (1)command -v gate-cli and gate-cli --version succeeds; (2)${HOME}/.local/bin/gate-cli if executable; (3)${HOME}/.openclaw/skills/bin/gate-cli if executable. Canonical rules: exchange-runtime-rules.md §4 (or gate-runtime-rules.md §4).
Gate Exchange Assets Assistant
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 ./references/gate-runtime-rules.md
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.
Skill Dependencies
gate-cli commands used
Query Operations (Read-only)
gate-cli cex delivery account get
gate-cli cex earn dual balance
gate-cli cex earn dual orders
cexearnliststructuredorders
gate-cli cex futures account get
gate-cli cex margin account list
gate-cli cex options account get
gate-cli cex spot account get
gate-cli cex spot account book
gate-cli cex tradfi account assets
gate-cli cex unified account get
gate-cli cex wallet balance total
Authentication
Interactive file setup: when GATEAPIKEY and GATEAPISECRET are not both set on the host, run gate-cli config init to complete the wizard for API key, secret, profiles, and defaults (see gate-cli).
Env / flags:gate-cli config init is not required when credentials are already supplied — e.g. bothGATEAPIKEY and GATEAPISECRET set on the host, or --api-key / --api-secret where supported — never ask the user to paste secrets into chat.
Required:gate-cli (run sh ./setup.sh from this skill directory if missing; optional GATECLISETUP_MODE=release).
Add $HOME/.openclaw/skills/bin to PATH if you invoke gate-cli by name (or the directory where [setup.sh](./setup.sh) installs it).
Credentials: When GATEAPIKEY and GATEAPISECRET are both set (non-empty) for the host, do not require gate-cli config init — that is equivalent valid config for gate-cli. When both are unset or empty, remind the operator to run gate-cli config initor to configure GATEAPIKEY / GATEAPISECRET in the matching skill from the skill library (never ask the user to paste secrets into chat).
Sanity check: Do not proceed with authenticated calls until the CLI behaves as expected (e.g. gate-cli --version or a read-only gate-cli cex ... command from this skill); confirm credentials resolve before mutating operations.
Execution mode
Read and strictly follow [references/gate-cli.md](./references/gate-cli.md), then execute this skill's assets-query workflow.
SKILL.md keeps intent routing and rendering rules.
references/gate-cli.md is the authoritative gate-cli execution contract for multi-account data collection, normalization, and degraded output handling.
gate-cli cex earn dual balance, gate-cli cex earn dual orders, cexearnliststructuredorders (no gate-cli mapping in gate-cli/cmd/cex; see MCPLEGACYTOOL_RESOLUTION.md §二)
Finance
Flexible savings / Dual currency / Structured
gate-cli cex spot account book
Spot account book / ledger
ledger entries
Account Name Mapping (details key → Display)
API key
Display
spot
Spot account / Trading account
futures
Futures account (USDT perpetual)
delivery
Delivery contract account
options
Options account
finance
Finance account
quant
Quant/bot account
meme_box
Alpha account
margin
Isolated margin account
cross_margin
Cross margin account
payment
Payment account (not in total)
Key Rules
Read-only. No trading, transfer, or order placement.
TradFi / payment: USDx and payment assets are NOT included in CEX total; display separately.
Unified account: When marginmode is classic/crossmargin/portfolio, spot may be merged into "trading account". Do NOT use internal terms like "advanced mode", "S1/S2".
Pair format: Futures use no-slash (BTCUSDT); spot/margin use slash (BTC/USDT).
Precision: Fiat valuation 2 decimals; dust (<$0.01) show as <$0.01; finance yesterday PnL up to 8 decimals.
Case Routing Map
I. Total & Overview (Case 1)
Case
Trigger Phrases
MCP Tool
Output
1
"How much do I have", "Show my CEX total assets", "Account asset distribution", "Account overview", "Check my balance"
gate-cli cex wallet balance total currency=USDT
Total amount, account distribution, coin distribution; TradFi/payment listed separately if any
II. Specific Currency (Case 2)
Case
Trigger Phrases
MCP Tool
Output
2
"How many BTC do I have", "How many USDT do I have"