okx-cex-smartmoney
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOKX CEX Smart Money CLI
OKX CEX Smart Money CLI
Smart Money leaderboard, trader analytics, position tracking, and aggregated consensus signals.
Smart Money交易员排行榜、交易员分析、持仓跟踪以及聚合共识信号。
Preflight
前置准备
Before running any command, follow .
Use from this file's frontmatter as the reference for Step 2.
../_shared/preflight.mdmetadata.version运行任何命令前,请遵循中的指引。使用此文件前置内容中的作为步骤2的参考版本。
../_shared/preflight.mdmetadata.versionPrerequisites
前提条件
- Install CLI:
okxbashnpm install -g @okx_ai/okx-trade-cli - Configure credentials:
bash
okx config add-profile AK=<your_api_key> SK=<your_secret_key> PP=<your_passphrase> name=live # or interactive wizard: okx config init - Verify:
okx --profile live smartmoney traders --limit 5
- 安装CLI工具:
okxbashnpm install -g @okx_ai/okx-trade-cli - 配置凭证:
bash
okx config add-profile AK=<your_api_key> SK=<your_secret_key> PP=<your_passphrase> name=live # 或使用交互式向导: okx config init - 验证:执行
okx --profile live smartmoney traders --limit 5
Credential & Profile Check
凭证与配置文件检查
Run before any authenticated command.
okx config show- Error or no configuration → stop, guide user to run , wait for completion.
okx config init - Credentials configured → proceed.
On 401 errors: stop immediately, tell the user their credentials may be invalid or expired, guide them to update (do NOT ask them to paste credentials into chat), then verify with and retry.
~/.okx/config.tomlokx config show执行任何需要认证的命令前,请运行。
okx config show- 若出现错误或无配置 → 停止操作,引导用户运行,等待配置完成。
okx config init - 凭证已配置 → 继续操作。
**遇到401错误时:**立即停止操作,告知用户其凭证可能无效或已过期,引导他们更新(请勿要求用户在聊天框中粘贴凭证),然后通过验证并重试。
~/.okx/config.tomlokx config showSkill Routing
技能路由
| User intent | Route to skill |
|---|---|
| Market prices, tickers, candles | |
| Spot / swap / futures / options orders | |
| Account balance, positions, transfers | |
| Grid / DCA trading bots | |
| Simple Earn, On-chain Earn, DCD | |
| Smart Money leaderboard, signals, trader analytics | This skill |
| 用户意图 | 路由至技能 |
|---|---|
| 市场价格、行情 ticker、K线 | |
| 现货/永续合约/期货/期权订单 | |
| 账户余额、持仓、转账 | |
| 网格/DCA交易机器人 | |
| Simple Earn、链上赚币、DCD | |
| Smart Money交易员排行榜、信号、交易员分析 | 本技能 |
Command Index (5 commands, all read-only)
命令索引(5个命令,均为只读)
Trader Data
交易员数据
| Command | Type | Auth | Description |
|---|---|---|---|
| READ | Required | List/filter traders from leaderboard |
| READ | Required | Trader full portrait (profile + positions + trades) |
| READ | Required | Multi-currency smart money overview (prefer --ts) |
| 命令 | 类型 | 认证要求 | 描述 |
|---|---|---|---|
| 只读 | 需要 | 列出/筛选排行榜中的交易员 |
| 只读 | 需要 | 交易员完整画像(资料+持仓+交易记录) |
| 只读 | 需要 | 多币种Smart Money总览(优先使用--ts参数) |
Signal Data
信号数据
| Command | Type | Auth | Description |
|---|---|---|---|
| READ | Required | Single-currency aggregated consensus signal (prefer --ts) |
| READ | Required | Signal history timeline for trend analysis (prefer --ts) |
Note: Prefer(e.g.--tsfor latest snapshot) for overview / signal / signal-history;--ts $(date +%s)000is an alternative for replaying a prior snapshot. At least one of the two must be provided; if both are sent,--dataVersionwins.--ts
For full command syntax and parameters, read and .
{baseDir}/references/trader-commands.md{baseDir}/references/signal-commands.md| 命令 | 类型 | 认证要求 | 描述 |
|---|---|---|---|
| 只读 | 需要 | 单币种聚合共识信号(优先使用--ts参数) |
| 只读 | 需要 | 信号历史时间线,用于趋势分析(优先使用--ts参数) |
注意: 查询总览/信号/信号历史时优先使用参数(例如:--ts获取最新快照);--ts $(date +%s)000是用于回放历史快照的备选参数。必须提供其中一个参数;若同时提供,--dataVersion参数优先级更高。--ts
如需完整命令语法及参数说明,请查阅和。
{baseDir}/references/trader-commands.md{baseDir}/references/signal-commands.mdOperation Flow
操作流程
Step 0 — Credential & Profile Check
步骤0 — 凭证与配置文件检查
Before any command: see Credential & Profile Check. Always use silently.
--profile live执行任何命令前:请参考凭证与配置文件检查部分。默认自动添加参数。
--profile liveStep 1 — Identify intent
步骤1 — 识别用户意图
Trader discovery / ranking:
- "推荐交易员" / "top traders" / "牛人榜" → with sorting/filtering. See
smartmoney traders.{baseDir}/references/trader-commands.md - "看看某个交易员" / "trader detail" → . See
smartmoney trader --authorId <id>. Signal analysis:{baseDir}/references/trader-commands.md - "BTC 聪明钱信号" / "smart money signal for BTC" → . See
smartmoney signal.{baseDir}/references/signal-commands.md - "聪明钱总览" / "smart money overview" → . See
smartmoney overview.{baseDir}/references/signal-commands.md - "信号趋势" / "signal trend over time" → . See
smartmoney signal-history.{baseDir}/references/signal-commands.md
交易员发现/排行:
- "推荐交易员" / "top traders" / "牛人榜" → 使用带排序/筛选参数的命令。详情请查阅
smartmoney traders。{baseDir}/references/trader-commands.md - "查看某个交易员详情" / "trader detail" → 使用命令。详情请查阅
smartmoney trader --authorId <id>。 信号分析:{baseDir}/references/trader-commands.md - "BTC 聪明钱信号" / "smart money signal for BTC" → 使用命令。详情请查阅
smartmoney signal。{baseDir}/references/signal-commands.md - "聪明钱总览" / "smart money overview" → 使用命令。详情请查阅
smartmoney overview。{baseDir}/references/signal-commands.md - "信号趋势" / "signal trend over time" → 使用命令。详情请查阅
smartmoney signal-history。{baseDir}/references/signal-commands.md
Step 2 — Execute and present
步骤2 — 执行并展示结果
All commands are READ-only — no confirmation needed. Always pass and render results as Markdown tables.
--jsonFor multi-step workflows (recommend traders then drill down, signal analysis with context), read .
{baseDir}/references/workflows.md所有命令均为只读操作 — 无需确认。执行时需添加参数,并将结果渲染为Markdown表格。
--json如需多步骤工作流(如先推荐交易员再查看详情、结合上下文进行信号分析),请查阅。
{baseDir}/references/workflows.mdGlobal Notes
全局注意事项
- Security: Never ask users to paste API keys or secrets into chat.
- Output: Always pass to list/query commands and render results as a Markdown table — never paste raw terminal output.
--json - Network errors: If commands fail with a connection error, prompt user to check VPN:
curl -I https://www.okx.com - Language: Always respond in the user's language.
- Signal availability: Signal commands (overview, signal, signal-history) require either (preferred — use
--tsfor latest) or$(date +%s)000(for historical snapshot replay). If both are sent,--dataVersionwins.--ts
For number/time formatting and response structure conventions, read .
{baseDir}/references/templates.md- 安全: 切勿要求用户在聊天框中粘贴API密钥或机密信息。
- 输出: 执行列表/查询命令时务必添加参数,并将结果渲染为Markdown表格 — 请勿直接粘贴原始终端输出。
--json - 网络错误: 若命令因连接错误失败,请提示用户检查VPN:执行
curl -I https://www.okx.com - 语言: 始终使用用户的语言进行回复。
- 信号可用性: 信号类命令(总览、信号、信号历史)需要参数(优先使用,
--ts可获取最新数据)或$(date +%s)000参数(用于回放历史快照)。若同时提供两个参数,--dataVersion参数优先级更高。--ts
如需数字/时间格式及响应结构规范,请查阅。
{baseDir}/references/templates.md