OKX News & Sentiment
Crypto news aggregation and coin sentiment analysis for OKX. All commands are read-only and require API credentials (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:
bash
npm install -g @okx_ai/okx-trade-cli
- Configure credentials in
- 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.
On "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:
okx --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.
Quickstart
bash
# Latest news
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)
# BTC news
okx news by-coin --coins BTC
# Search for SEC ETF news
okx news search --keyword "SEC ETF"
# BTC sentiment overview
okx news coin-sentiment --coins BTC
# Trending coins (hottest right now)
okx news sentiment-rank
Intent → 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" | okx news latest --begin <yesterday_0am> --end <today_0am>
|
| "any news on BTC recently" / "what's going on with BTC" | okx news by-coin --coins BTC
|
| "any major updates on ETH or SOL" | okx news by-coin --coins ETH,SOL --importance high
|
Search News
| User says | Command |
|---|
| "any updates on the SEC ETF decision" | okx news search --keyword "SEC ETF"
|
| "what's the latest on stablecoin regulation" | okx news search --keyword "stablecoin regulation"
|
| "any news about the Bitcoin halving" | okx news search --keyword "Bitcoin halving"
|
Coin Sentiment Analysis
| User says | Command |
|---|
| "is the market bullish or bearish on BTC right now" / "how do people feel about BTC" | okx news coin-sentiment --coins BTC
|
| "compare how people feel about ETH vs SOL" | okx news coin-sentiment --coins ETH,SOL
|
| "how has BTC sentiment changed over the past 24 hours" | okx news coin-trend BTC --period 1h --points 24
|
| "show me BTC sentiment over the past week" | okx news coin-trend BTC --period 24h --points 7
|
| "what's hot in crypto right now" / "which coins are getting the most attention" | |
| "which coins are people most excited about" / "top bullish coins" | okx news sentiment-rank --sort-by bullish
|
| "which coins have the most negative sentiment" | okx news sentiment-rank --sort-by bearish
|
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.
Source-Filtered News
Use
to filter by news source directly. Get available source names from
first.
| User says | Command |
|---|
| "ChainCatcher 最近报道了什么" / "show me news from ChainCatcher" | okx news latest --platform chaincatcher --importance low --limit 10
|
| "Odaily 有什么新闻" / "news from techflowpost" | okx news latest --platform odaily_flash --limit 10
|
| "吴说区块链最近有什么" / "BWE news" | okx news latest --platform wushou --importance low --limit 20
|
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.
,
,
,
,
,
,
,
).
Cross-Skill Workflows
See references/workflows.md for multi-step scenarios (market overview, daily briefing, etc.) and full MCP tool → CLI mapping.
Command Reference
Get 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]
Get 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]
Get 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]
Full-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]
Get full article content by ID.
bash
okx news detail <id> # news ID from previous result
[--lang zh-CN|en-US] [--json]
Browse 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]
List available news platforms. Use the returned values with
on
,
, or
commands to filter by source.
bash
okx news platforms [--json]
Get 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),
,
,
.
Get time-series sentiment trend for a coin. Note: uses positional arg (not
).
bash
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]
guide: 1h period → use 24 (last 24h), 4h → use 6, 24h → use 7.
Get 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]
MCP Tool Reference
| Tool | Description |
|---|
| Latest news sorted by time; pass for breaking news only |
| News for specific coins ( is comma-separated string) |
| Full-text keyword search with filters (optional filter) |
| Full article content by ID |
| List available news source domains |
| Sentiment snapshot (no ) or time-series trend (pass ) |
news_get_sentiment_ranking
| Coin ranking by hotness or sentiment direction |
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.
Empty Results & Web Search 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 /, or drop to get general news
- Use web search as a supplement — search the web for
"<coin> news site:coindesk.com OR site:cointelegraph.com OR site:theblock.co"
to gather additional context, then combine with any OKX results into a unified briefing
- 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
Known Limitations
Source Coverage
Not all registered platforms in
are actively producing articles. Based on recent evaluation, the consistently active sources are:
| 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).
Historical Search Limitations
and
primarily index
recent articles (typically today and recent days). Searching with
/
for dates more than ~7 days ago may return empty results even if articles existed at that time. This is an API indexing limitation, not a data absence.
For historical analysis,
(sentiment trend data) is more reliable than article search — it retains time-series data for longer periods.
Edge Cases
- Pagination: use to get next page; cursor comes from in response
- Time parameters: / are Unix epoch milliseconds
- Coins format: comma-separated uppercase symbols, e.g. — never pass full names or aliases
- coin-trend : always pass explicitly; 1h→24, 4h→6, 24h→7
- Language: inferred from user's message — for Chinese, for English (default)
- sentiment-rank : =by mention count (default), =most bullish, =most bearish