← 返回 Skills 市场
numpy0001

okx-cex-portfolio

作者 numpy0001 · GitHub ↗ · v1.3.2 · MIT-0
cross-platform ✓ 安全检测通过
597
总下载
0
收藏
5
当前安装
9
版本数
在 OpenClaw 中安装
/install okx-cex-portfolio
功能描述
This skill should be used when the user asks about 'account balance', 'how much USDT do I have', 'my funding account', 'show my positions', 'open positions',...
安全使用建议
This skill appears to do what it says: it uses an OKX CLI to inspect account balances, positions, and transfers. Before installing/use: 1) Verify the npm package @okx_ai/okx-trade-cli on npmjs.org / GitHub to ensure it is the official OKX tool and check its source and recent activity. 2) Use demo mode for initial testing. 3) Create least-privilege API keys (no withdrawal permission, restrict IPs) rather than full-access keys. 4) Do NOT paste your API key or full config output into chat; be cautious when running commands like okx config show --json because they can reveal secrets in command output. 5) Note the small inconsistency: registry metadata indicated 'instruction-only' but the SKILL.md calls for installing an npm CLI — confirm you are comfortable installing that external binary before proceeding.
功能分析
Type: OpenClaw Skill Name: okx-cex-portfolio Version: 1.3.2 The okx-cex-portfolio skill is a well-documented tool for managing OKX exchange accounts, covering balances, positions, and transfers. It demonstrates good security practices by explicitly instructing the agent never to accept credentials in chat and directing users to a local CLI configuration flow (`okx config init`). The logic for distinguishing between 'Live' and 'Demo' modes is clearly defined to prevent accidental trades, and no evidence of data exfiltration, malicious execution, or harmful prompt injection was found in SKILL.md or _meta.json.
能力标签
cryptorequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Name and description match the actions the SKILL.md instructs (account balance, positions, P&L, bills, transfers). The skill depends on an OKX CLI and expects stored API credentials or OAuth, which is appropriate for the claimed functionality.
Instruction Scope
Runtime instructions stay within the OKX account domain (run okx account balance, positions, bills, transfer, etc.) and explicitly tell the user how to check auth and trading mode. Note: the instructions require running commands that can output configuration and potentially sensitive API keys (e.g., okx config show --json). The skill advises not to accept credentials in chat but does not explicitly instruct the agent/user to redact secrets from command output; that is an operational risk to consider.
Install Mechanism
The SKILL.md frontmatter and Quickstart instruct installing @okx_ai/okx-trade-cli via npm (global). Using an npm package for a CLI is proportionate to the task. Minor inconsistency: registry metadata stated 'No install spec / instruction-only' while the SKILL.md contains an install entry and explicit npm install guidance — the presence of an external package should be validated (package provenance, published source).
Credentials
The skill requires API credentials in practice, but it does not request environment variables — instead it relies on the okx CLI's local config or OAuth session. This is coherent, but the skill instructs commands (okx config show --json) that expose config contents; users should avoid pasting config outputs into chat and prefer demo mode or least-privilege API keys.
Persistence & Privilege
The skill is not force-included (always: false) and does not request persistent platform privileges. It does instruct installing a system/global npm CLI binary, which modifies the environment; that is expected but worth user approval. The skill also references other OKX-related skills for auth or trade flows, which is normal routing behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install okx-cex-portfolio
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /okx-cex-portfolio 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.2
**Version 1.3.2 – Adds full account overview and unifies API/OAuth logic** - Now supports requests for total net worth, all assets/balances, "总资产", "full balance", and similar asset-overview queries. - Updated credential detection: distinguishes API key vs OAuth login, checks both CLI and OAuth session state. - Clarified and unified demo/live trading mode switching rules for both API key and OAuth users. - Added explicit instructions for handling authentication failures (with proper skill routing to re-authentication). - Updated install instructions and metadata to reference latest CLI version.
v1.3.1
- Version bumped to 1.3.1 in metadata. - No other changes detected; documentation and functionality remain the same.
v1.3.0
Version 1.3.0 - Updated funding-to-trading transfer direction in sample commands and workflows (from `--from 6 --to 18` to `--from 18 --to 6` and vice versa) for improved clarity. - Bumped version number from 1.2.8 to 1.3.0. - No code changes; documentation adjustments only.
v1.2.8
- Updated version to 1.2.8 in metadata. - Added a "Preflight" section pointing to a shared preflight instructions file and referencing metadata.version. - Expanded command usage for asset-balance: `okx account asset-balance [ccy] [--valuation]` now documents the `--valuation` option. - No functional logic changes; documentation only.
v1.2.7
Version 1.2.7 of okx-cex-portfolio - No file changes detected in this release. - All CLI functionality, workflows, and instructions remain the same.
v1.2.6
No changes detected in this version. - Version 1.2.6 does not include any file updates or changes from the previous release. - All features and documentation remain unchanged.
v1.2.1
Version 1.2.1 - Updated metadata to replace the deprecated "moltbot" field with the "agent" field for compatibility. - No user-facing changes; all functionality and documentation remain the same.
v1.2.0
Version 1.2.0 - No file changes detected in this release. - No updates or new features introduced; all documentation and commands remain unchanged.
v1.1.9
- Adds a comprehensive SKILL.md with detailed usage, credential checks, profile switching, and supported command lists for OKX account/portfolio operations. - Clarifies this skill’s scope: account balances, positions, P&L, bills, fees, and fund transfers only; explicitly excludes market data, order placement/cancellation, and bots. - Specifies strict API credential handling, 401 error recovery steps, and profile (live/demo) confirmation workflow for all authenticated commands. - Includes command quickstart, cross-skill workflows, and precise routing rules for integration with other OKX skill modules. - Ensures all portfolio actions confirm and display active profile ([profile: live] or [profile: demo]) after every command.
元数据
Slug okx-cex-portfolio
版本 1.3.2
许可证 MIT-0
累计安装 5
当前安装数 5
历史版本数 9
常见问题

okx-cex-portfolio 是什么?

This skill should be used when the user asks about 'account balance', 'how much USDT do I have', 'my funding account', 'show my positions', 'open positions',... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 597 次。

如何安装 okx-cex-portfolio?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install okx-cex-portfolio」即可一键安装,无需额外配置。

okx-cex-portfolio 是免费的吗?

是的,okx-cex-portfolio 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

okx-cex-portfolio 支持哪些平台?

okx-cex-portfolio 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 okx-cex-portfolio?

由 numpy0001(@numpy0001)开发并维护,当前版本 v1.3.2。

💬 留言讨论