Yahoo Finance News
by @phonphrm
Fetch recent finance news headlines for stock, ETF, and index symbols via Yahoo Finance (yfinance), with caching and structured JSON output.
clawhub install yahoofinance-newsπ About This Skill
name: yahoofinance-news description: Fetch recent finance news headlines for stock, ETF, and index symbols via Yahoo Finance (yfinance), with caching and structured JSON output. argument-hint: "Provide symbol(s) like AAPL, TSLA, ^GSPC and optional limit/ttl preferences." metadata: {"clawdbot":{"emoji":"π°","requires":{"bins":["python3"]},"config":{"stateDirs":[".cache/finance-news"],"example":"# No API key required\n# Install deps once in this skill folder\npip install -r requirements.txt"}}}
Finance News Skill
Attribution: based on finance skill patterns by @@anton-roos.
Fetch recent finance news for Yahoo symbols (stocks, ETFs, indices) using yfinance.
It is optimized for:
When to use
Use this skill when the user asks:If the user asks for multiple symbols, run the script once per symbol and merge/summarize results.
Common trigger phrases:
Provider strategy
yfinanceQuick start (how you run it)
These scripts are intended to be run from a terminal. The agent should: 1) ensure dependencies installed 2) run the scripts 3) summarize results cleanlyInstall:
cd {baseDir}
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
deactivate
Quick start (agent execution)
Run from this skill directory.
Install dependencies:
pip install -r {baseDir}/requirements.txt
Commands
1) Fetch recent news (JSON)
Examples:python {baseDir}/scripts/market_news.py AAPL
python {baseDir}/scripts/market_news.py TSLA --limit 15
python {baseDir}/scripts/market_news.py ^GSPC --limit 10
2) Force refresh (skip cache)
python {baseDir}/scripts/market_news.py NVDA --no-cache
3) Tune cache behavior
python {baseDir}/scripts/market_news.py AAPL --ttl 60
python {baseDir}/scripts/market_news.py AAPL --ttl 0 --no-cache
4) Multi-symbol workflow
python {baseDir}/scripts/market_news.py AAPL --limit 8
python {baseDir}/scripts/market_news.py MSFT --limit 8
python {baseDir}/scripts/market_news.py NVDA --limit 8
Then produce one consolidated summary grouped by symbol.
Agent workflow
1) Detect requested symbol(s) and desired depth (limit, default 10).
2) Run the script for each symbol.
3) Parse JSON and extract top items by recency and relevance.
4) For every returned news item, include its URL (url preferred, fallback to link).
5) Return a concise human summary plus per-item links.
6) If there are zero items, say so clearly and suggest retry (--no-cache) or another symbol.
Output expectations
symbol, source, fetched_at_*, count, items, note.title, publisher, published_at_unix, published_at_utc, url, link, summary.Mandatory rule:
url first; if missing, use link.URL not available for that item.Recommended item format:
-
Publisher:
Published (UTC):
URL:
Suggested response structure: 1) One-line market/news context (if obvious). 2) Bulleted top headlines. 3) Caveat if coverage is sparse or stale.
Safety / correctness
Failure handling
count = 0: return "No recent items found" and suggest --no-cache retry.