news-sentiment
npx machina-cli add skill staskh/trading_skills/news-sentiment --openclawNews Sentiment
Fetch recent news from Yahoo Finance.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
uv run python scripts/news.py SYMBOL [--limit LIMIT]
Arguments
SYMBOL- Ticker symbol--limit- Number of articles (default: 10)
Output
Returns JSON with:
articles- Array of recent news with title, publisher, date, linksummary- Brief summary of overall sentiment
Present key headlines and note any significant news that could impact the stock.
Dependencies
yfinance
Source
git clone https://github.com/staskh/trading_skills/blob/main/.claude/skills/news-sentiment/SKILL.mdView on GitHub Overview
This skill fetches recent stock news from Yahoo Finance and returns a structured feed of articles with titles, publishers, dates, and links, plus an overall sentiment summary. It helps users understand current developments around a ticker and surface headlines that may impact price or perception.
How This Skill Works
A Python script (scripts/news.py) is executed with the SYMBOL and optional --limit. It uses Yahoo Finance data (via yfinance) to assemble an articles list containing title, publisher, date, and link, plus a brief sentiment summary.
When to Use It
- You want the latest headlines for a stock and their sources.
- You need a quick sentiment snapshot for a ticker.
- Before a meeting or call, you want a recap of recent developments for a symbol.
- You’re researching a stock after a major event to gauge impact.
- You want a manageable set of recent articles to avoid noise (adjust with --limit).
Quick Start
- Step 1: Run the tool with a symbol, e.g., uv run python scripts/news.py SYMBOL [--limit LIMIT].
- Step 2: If uv is not available, use python scripts/news.py SYMBOL [--limit LIMIT].
- Step 3: Review the returned JSON with articles and the overall sentiment summary.
Best Practices
- Specify the exact ticker symbol (e.g., AAPL).
- Use a sensible --limit (e.g., 5–20) to manage noise.
- Check article dates to ensure recency.
- Cross-check key headlines with official press releases.
- Treat the sentiment summary as context, not a price predictor.
Example Use Cases
- news-sentiment AAPL
- news-sentiment TSLA --limit 5
- news-sentiment MSFT
- news-sentiment NFLX --limit 20
- news-sentiment GOOGL