okx-sentiment-tracker
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOKX News & Sentiment
OKX 新闻与情绪分析
Crypto news aggregation and coin sentiment analysis for OKX. All commands are read-only and require API credentials (OAuth2.1).
针对OKX的加密货币新闻聚合与币种情绪分析工具。所有命令均为只读,且需要API凭证(OAuth2.1)。
Capabilities
功能
| User Intent | Command |
|---|---|
| Latest/important news | |
| Coin-specific news | |
| Keyword news search | |
| Sentiment-filtered news | |
| Full article content | |
| Coin sentiment snapshot | |
| Sentiment trend | |
| Sentiment ranking | |
| News source list | |
| 用户意图 | 命令 |
|---|---|
| 最新/重要新闻 | |
| 指定币种新闻 | |
| 关键词新闻搜索 | |
| 按情绪筛选新闻 | |
| 完整文章内容 | |
| 币种情绪快照 | |
| 情绪趋势 | |
| 情绪排名 | |
| 新闻来源列表 | |
Prerequisites
前置条件
- Install CLI:
okxbashnpm install -g @okx_ai/okx-trade-cli - Configure credentials in
~/.okx/config.toml - Verify setup:
bash
okx news latest --limit 3
OKX News does not support demo mode. Always use silently — don't mention it unless there's an error.
--profile liveOn "not available in demo" errors: the user's current profile is configured with demo/simulated credentials. Tell the user: "News module does not support demo mode. Please switch to a live profile." Guide them to either:
- Use if a live profile exists:
--profile liveokx --profile live news latest - Or create one:
okx config add-profile AK=<key> SK=<secret> PP=<passphrase> name=live
All commands support for raw JSON output.
--json- 安装 CLI:
okxbashnpm install -g @okx_ai/okx-trade-cli - 在 中配置凭证
~/.okx/config.toml - 验证安装:
bash
okx news latest --limit 3
OKX News不支持演示模式。请默认使用 ,除非出现错误否则无需提及。
--profile live遇到“演示模式不可用”错误时:用户当前配置的是演示/模拟凭证。请告知用户:“新闻模块不支持演示模式,请切换至真实环境配置文件。”并引导用户:
- 若已有真实环境配置文件,使用 :
--profile liveokx --profile live news latest - 或创建新配置文件:
okx config add-profile AK=<密钥> SK=<密钥密码> PP=<口令> name=live
所有命令均支持 参数以输出原始JSON格式数据。
--jsonQuickstart
快速开始
bash
undefinedbash
undefinedLatest news
获取最新新闻
okx news latest --limit 5
okx news latest --limit 5
Today's important news
获取今日重要新闻
okx news important --begin $(date -d 'today 00:00:00' +%s000 2>/dev/null || date -v0H -v0M -v0S +%s000)
okx news important --begin $(date -d 'today 00:00:00' +%s000 2>/dev/null || date -v0H -v0M -v0S +%s000)
BTC news
获取BTC新闻
okx news by-coin --coins BTC
okx news by-coin --coins BTC
Search for SEC ETF news
搜索SEC ETF相关新闻
okx news search --keyword "SEC ETF"
okx news search --keyword "SEC ETF"
BTC sentiment overview
获取BTC情绪概览
okx news coin-sentiment --coins BTC
okx news coin-sentiment --coins BTC
Trending coins (hottest right now)
获取热门币种(当前最受关注)
okx news sentiment-rank
undefinedokx news sentiment-rank
undefinedIntent → Command Mapping
用户意图→命令映射
Browse News
浏览新闻
| User says | Command |
|---|---|
| "what's been happening in crypto lately" / "catch me up on recent news" | |
| "any big news today" / "what are the major stories right now" | |
| "what happened in crypto yesterday" | |
| "any news on BTC recently" / "what's going on with BTC" | |
| "any major updates on ETH or SOL" | |
| 用户提问 | 命令 |
|---|---|
| “最近加密货币领域有什么动态” / “帮我了解近期新闻” | |
| “今日有什么重大新闻” / “当前主要热点是什么” | |
| “昨天加密货币领域发生了什么” | |
| “最近BTC有什么新闻” / “BTC近况如何” | |
| “ETH或SOL有什么重大更新” | |
Search News
搜索新闻
| User says | Command |
|---|---|
| "any updates on the SEC ETF decision" | |
| "what's the latest on stablecoin regulation" | |
| "any news about the Bitcoin halving" | |
| 用户提问 | 命令 |
|---|---|
| “SEC ETF决策有什么最新进展” | |
| “稳定币监管最新消息是什么” | |
| “比特币减半相关新闻有哪些” | |
Coin Sentiment Analysis
币种情绪分析
| User says | Command |
|---|---|
| "is the market bullish or bearish on BTC right now" / "how do people feel about BTC" | |
| "compare how people feel about ETH vs SOL" | |
| "how has BTC sentiment changed over the past 24 hours" | |
| "show me BTC sentiment over the past week" | |
| "what's hot in crypto right now" / "which coins are getting the most attention" | |
| "which coins are people most excited about" / "top bullish coins" | |
| "which coins have the most negative sentiment" | |
| 用户提问 | 命令 |
|---|---|
| “当前市场对BTC是看涨还是看跌” / “人们对BTC的看法如何” | |
| “对比人们对ETH和SOL的看法” | |
| “过去24小时BTC情绪有什么变化” | |
| “展示过去一周BTC的情绪变化” | |
| “当前加密货币领域热门币种是什么” / “哪些币种最受关注” | |
| “人们最看好哪些币种” / “最看涨币种” | |
| “哪些币种情绪最负面” | |
Sentiment Anomaly Detection (multi-coin)
多币种情绪异常检测
| User says | Workflow |
|---|---|
| "哪些币种情绪变化最大" / "any sentiment anomalies" / "which coins flipped sentiment" | → Anomaly Detection workflow |
| "过去一周有什么异动" / "sudden sentiment shifts" / "sentiment reversal" | → Anomaly Detection workflow |
| "有没有突然转看涨/看跌的" / "any coins turning bullish/bearish" | → Anomaly Detection workflow |
These queries require a broad-then-deep approach: first scan all coins for anomalies, then deep-dive with news correlation. Follow the multi-phase workflow in — do NOT just pick a few coins to analyze.
references/workflows.md| 用户提问 | 工作流 |
|---|---|
| “哪些币种情绪变化最大” / “有没有情绪异常币种” / “哪些币种情绪反转” | → 异常检测工作流 |
| “过去一周有什么异动” / “突发情绪变化” / “情绪反转” | → 异常检测工作流 |
| “有没有突然转看涨/看跌的币种” / “哪些币种开始看涨/看跌” | → 异常检测工作流 |
此类查询需遵循先广度扫描再深度分析的流程:先扫描所有币种寻找异常,再结合新闻进行深度关联分析。请严格遵循中的多阶段工作流,切勿仅挑选少数币种进行分析。
references/workflows.mdSource-Filtered News
按来源筛选新闻
Use to filter by news source directly. Get available source names from first.
--platformokx news platforms| User says | Command |
|---|---|
| "ChainCatcher 最近报道了什么" / "show me news from ChainCatcher" | |
| "Odaily 有什么新闻" / "news from techflowpost" | |
| "吴说区块链最近有什么" / "BWE news" | |
Important: When filtering by source, always use and a larger (10-20) to maximize results, since individual sources typically have fewer articles than the aggregated feed. The parameter accepts values from (e.g. , , , , , , , ).
--importance low--limit--platformokx news platformsblockbeatsodaily_flashchaincatchertechflowpostbwe528btcpanewswushou使用参数直接按新闻来源筛选。需先通过获取可用来源名称。
--platformokx news platforms| 用户提问 | 命令 |
|---|---|
| “ChainCatcher最近报道了什么” / “展示ChainCatcher的新闻” | |
| “Odaily有什么新闻” / “techflowpost的新闻” | |
| “吴说区块链最近有什么内容” / “BWE新闻” | |
重要提示:按来源筛选时,需始终使用并设置较大的值(10-20)以获取更多结果,因为单个来源的文章数量通常少于聚合信息流。参数接受返回的值(例如、、、、、、、)。
--importance low--limit--platformokx news platformsblockbeatsodaily_flashchaincatchertechflowpostbwe528btcpanewswushouCross-Skill Workflows
跨技能工作流
See references/workflows.md for multi-step scenarios (market overview, daily briefing, etc.) and full MCP tool → CLI mapping.
请查看references/workflows.md获取多步骤场景(市场概览、每日简报等)及完整MCP工具→CLI映射关系。
Command Reference
命令参考
okx news latest
okx news latestokx news latest
okx news latestGet the latest crypto news sorted by time.
bash
okx news latest [--coins BTC,ETH] [--begin <ms>] [--end <ms>]
[--importance high|low] [--platform <source>]
[--detail-lvl brief|summary|full] [--lang zh-CN|en-US]
[--limit 10] [--after <cursor>] [--json]按时间排序获取最新加密货币新闻。
bash
okx news latest [--coins BTC,ETH] [--begin <毫秒时间戳>] [--end <毫秒时间戳>]
[--importance high|low] [--platform <来源>]
[--detail-lvl brief|summary|full] [--lang zh-CN|en-US]
[--limit 10] [--after <游标>] [--json]okx news important
okx news importantokx news important
okx news importantGet high-impact breaking news (reported by multiple sources).
bash
okx news important [--coins BTC,ETH] [--begin <ms>] [--end <ms>]
[--detail-lvl brief|summary|full]
[--lang zh-CN|en-US] [--limit 10] [--json]获取高影响力突发新闻(被多个来源报道)。
bash
okx news important [--coins BTC,ETH] [--begin <毫秒时间戳>] [--end <毫秒时间戳>]
[--detail-lvl brief|summary|full]
[--lang zh-CN|en-US] [--limit 10] [--json]okx news by-coin
okx news by-coinokx news by-coin
okx news by-coinGet news for specific coins.
bash
okx news by-coin --coins <BTC,ETH,...>
[--importance high|low] [--platform <source>]
[--begin <ms>] [--end <ms>] [--lang zh-CN|en-US]
[--limit 10] [--json]获取指定币种的新闻。
bash
okx news by-coin --coins <BTC,ETH,...>
[--importance high|low] [--platform <来源>]
[--begin <毫秒时间戳>] [--end <毫秒时间戳>] [--lang zh-CN|en-US]
[--limit 10] [--json]okx news search
okx news searchokx news search
okx news searchFull-text keyword search with optional filters.
bash
okx news search --keyword <text>
[--coins BTC,ETH] [--importance high|low]
[--platform <source>]
[--sentiment bullish|bearish|neutral]
[--sort-by latest|relevant]
[--begin <ms>] [--end <ms>] [--lang zh-CN|en-US]
[--limit 10] [--after <cursor>] [--json]带可选筛选条件的全文关键词搜索。
bash
okx news search --keyword <文本>
[--coins BTC,ETH] [--importance high|low]
[--platform <来源>]
[--sentiment bullish|bearish|neutral]
[--sort-by latest|relevant]
[--begin <毫秒时间戳>] [--end <毫秒时间戳>] [--lang zh-CN|en-US]
[--limit 10] [--after <游标>] [--json]okx news detail
okx news detailokx news detail
okx news detailGet full article content by ID.
bash
okx news detail <id> # news ID from previous result
[--lang zh-CN|en-US] [--json]通过ID获取完整文章内容。
bash
okx news detail <id> # 来自之前结果的新闻ID
[--lang zh-CN|en-US] [--json]okx news by-sentiment
okx news by-sentimentokx news by-sentiment
okx news by-sentimentBrowse news filtered by sentiment (no keyword needed).
bash
okx news by-sentiment --sentiment <bullish|bearish|neutral>
[--coins BTC,ETH] [--importance high|low]
[--sort-by latest|relevant]
[--begin <ms>] [--end <ms>] [--lang zh-CN|en-US]
[--limit 10] [--after <cursor>] [--json]按情绪筛选浏览新闻(无需关键词)。
bash
okx news by-sentiment --sentiment <bullish|bearish|neutral>
[--coins BTC,ETH] [--importance high|low]
[--sort-by latest|relevant]
[--begin <毫秒时间戳>] [--end <毫秒时间戳>] [--lang zh-CN|en-US]
[--limit 10] [--after <游标>] [--json]okx news platforms
okx news platformsokx news platforms
okx news platformsList available news platforms. Use the returned values with on , , or commands to filter by source.
--platformlatestby-coinsearchbash
okx news platforms [--json]列出可用新闻平台。将返回值与、或命令的参数配合使用,可按来源筛选新闻。
latestby-coinsearch--platformbash
okx news platforms [--json]okx news coin-sentiment
okx news coin-sentimentokx news coin-sentiment
okx news coin-sentimentGet current sentiment snapshot for specific coins.
bash
okx news coin-sentiment --coins <BTC,ETH,...>
[--period 1h|4h|24h] # aggregation granularity, default 24h
[--json]Returns: , (bullish/bearish/neutral/mixed), , , .
symbollabelbullishRatiobearishRatiomentionCount获取指定币种的当前情绪快照。
bash
okx news coin-sentiment --coins <BTC,ETH,...>
[--period 1h|4h|24h] # 聚合粒度,默认24h
[--json]返回字段:、(bullish/bearish/neutral/mixed)、、、。
symbollabelbullishRatiobearishRatiomentionCountokx news coin-trend
okx news coin-trendokx news coin-trend
okx news coin-trendGet time-series sentiment trend for a coin. Note: uses positional arg (not ).
--coinsbash
okx news coin-trend <coin> # positional arg, e.g. BTC
[--period 1h|4h|24h] # aggregation granularity, default 1h
[--points 24] # trend data points, default 24
[--json]trendPoints获取单个币种的时间序列情绪趋势。注意:使用位置参数(而非)。
--coinsbash
okx news coin-trend <币种> # 位置参数,例如BTC
[--period 1h|4h|24h] # 聚合粒度,默认1h
[--points 24] # 趋势数据点数,默认24
[--json]trendPointsokx news sentiment-rank
okx news sentiment-rankokx news sentiment-rank
okx news sentiment-rankGet coin ranking by social hotness or sentiment direction.
bash
okx news sentiment-rank [--period 1h|4h|24h]
[--sort-by hot|bullish|bearish] # hot=by mentions (default), bullish, bearish
[--limit 10] # max 50
[--json]按社交热度或情绪方向对币种进行排名。
bash
okx news sentiment-rank [--period 1h|4h|24h]
[--sort-by hot|bullish|bearish] # hot=按提及量排序(默认),bullish=最看涨,bearish=最看跌
[--limit 10] # 最大50
[--json]MCP Tool Reference
MCP工具参考
| Tool | Description |
|---|---|
| Latest news sorted by time; pass |
| News for specific coins ( |
| Full-text keyword search with filters (optional |
| Full article content by ID |
| List available news source domains |
| Sentiment snapshot (no |
| Coin ranking by hotness or sentiment direction |
| 工具 | 描述 |
|---|---|
| 按时间排序的最新新闻;传入 |
| 指定币种的新闻( |
| 带筛选条件的全文关键词搜索(可选 |
| 通过ID获取完整文章内容 |
| 列出可用新闻来源域名 |
| 情绪快照(无 |
| 按热度或情绪方向对币种进行排名 |
Coin Symbol Normalization
币种符号标准化
The API only accepts standard uppercase ticker symbols (e.g. , , ). Users may refer to coins by full names, abbreviations, slang, or local-language nicknames. Always resolve these to the correct ticker before passing to any command. If the intended coin is ambiguous, ask the user to confirm before querying.
BTCETHSOLAPI仅接受标准大写代码(例如、、)。用户可能会用全称、缩写、俚语或本地语言昵称指代币种。在传入任何命令前,需将其解析为正确的代码。若币种存在歧义,需先请用户确认再进行查询。
BTCETHSOLEmpty Results & Web Search Fallback
无结果时的网页搜索 fallback
OKX news data may be sparse for niche coins or highly specific keyword searches. When a command returns empty or insufficient results:
- Retry with relaxed filters — remove , broaden
--importance/--begin, or drop--endto get general news--coins - Use web search as a supplement — search the web for to gather additional context, then combine with any OKX results into a unified briefing
"<coin> news site:coindesk.com OR site:cointelegraph.com OR site:theblock.co" - Be transparent — tell the user which results came from OKX API vs. web search so they can judge source credibility
This fallback is especially valuable for:
- Coins with low coverage (e.g. newly listed tokens)
- Highly specific keyword searches with no matches
对于小众币种或高度特定的关键词搜索,OKX新闻数据可能较为匮乏。当命令返回空结果或结果不足时:
- 放宽筛选条件重试 — 移除、扩大
--importance/--begin范围,或取消--end限制以获取通用新闻--coins - 补充网页搜索 — 在网页搜索中使用收集更多信息,再与OKX结果整合为统一简报
"<币种> news site:coindesk.com OR site:cointelegraph.com OR site:theblock.co" - 保持透明 — 告知用户哪些结果来自OKX API,哪些来自网页搜索,以便用户判断来源可信度
此 fallback 尤其适用于:
- 报道量低的币种(例如新上线代币)
- 无匹配结果的高度特定关键词搜索
Known Limitations
已知限制
Source Coverage
来源覆盖
Not all registered platforms in are actively producing articles. Based on recent evaluation, the consistently active sources are:
okx news platforms| Source | Status | Notes |
|---|---|---|
| Active | High volume |
| Active | High volume |
| Active | Medium volume |
| Active | Medium volume |
| Low activity | Few articles per week |
| Inconsistent | Registered but rarely appears in aggregated results; dedup issues |
| Inactive | Registered but no articles found in 90+ days |
| Inactive | Registered but no articles found in 90+ days |
When a user asks for news from an inactive source, do NOT retry repeatedly or page through hundreds of articles looking for it. Instead, report that the source currently has no data and suggest alternatives (other active sources or web search).
okx news platforms| 来源 | 状态 | 说明 |
|---|---|---|
| 活跃 | 高产出 |
| 活跃 | 高产出 |
| 活跃 | 中等产出 |
| 活跃 | 中等产出 |
| 低活跃度 | 每周仅少量文章 |
| 不稳定 | 已注册但极少出现在聚合结果中;存在去重问题 |
| 不活跃 | 已注册但90+天未发现文章 |
| 不活跃 | 已注册但90+天未发现文章 |
当用户询问不活跃来源的新闻时,请勿反复重试或翻找数百篇文章。应告知用户该来源当前无数据,并建议替代方案(其他活跃来源或网页搜索)。
Historical Search Limitations
历史搜索限制
okx news searchokx news by-coin--begin--endFor historical analysis, (sentiment trend data) is more reliable than article search — it retains time-series data for longer periods.
okx news coin-trendokx news searchokx news by-coin--begin--end对于历史分析,(情绪趋势数据)比文章搜索更可靠——它保留了更长时间的时间序列数据。
okx news coin-trendEdge Cases
边缘情况
- Pagination: use to get next page; cursor comes from
--after <cursor>in responsenextCursor - Time parameters: /
--beginare Unix epoch milliseconds--end - Coins format: comma-separated uppercase symbols, e.g. — never pass full names or aliases
BTC,ETH,SOL - coin-trend : always pass explicitly; 1h→24, 4h→6, 24h→7
--points - Language: inferred from user's message — for Chinese,
--lang zh-CNfor English (default)--lang en-US - sentiment-rank :
--sort-by=by mention count (default),hot=most bullish,bullish=most bearishbearish
- 分页:使用获取下一页;游标来自响应中的
--after <游标>字段nextCursor - 时间参数:/
--begin为Unix时间戳(毫秒)--end - 币种格式:逗号分隔的大写代码,例如——切勿传入全称或别名
BTC,ETH,SOL - coin-trend的:需显式传入;1h→24,4h→6,24h→7
--points - 语言:根据用户消息自动推断——中文用户使用,英文用户使用
--lang zh-CN(默认)--lang en-US - sentiment-rank的:
--sort-by=按提及量排序(默认),hot=最看涨,bullish=最看跌bearish