Skip to content
Back to skills

News Sentiment

ASecurity

Get recent news and sentiment for a stock. Use when user asks about news, headlines, sentiment, what's happening with a stock, or recent developments.

  • 426 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
datapythonbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add staskh/trading_skills --skill news-sentiment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of News Sentiment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for News Sentiment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/staskh-news-sentiment/badge)](https://www.skillsdirectory.com/skills/staskh-news-sentiment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: news-sentiment
description: Get recent news and sentiment for a stock. Use when user asks about news, headlines, sentiment, what's happening with a stock, or recent developments.
dependencies: ["trading-skills"]
---

# News Sentiment

Fetch recent news from Yahoo Finance: yfinance's ticker news first, then Yahoo's per-ticker RSS feed when that comes back empty or fails.

## Instructions

> **Note:** If `uv` is not installed or `pyproject.toml` is not found, replace `uv run python` with `python` in all commands below.

```bash
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 (`YYYY-MM-DD HH:MM ET`), link, type
- `count` - Number of articles returned
- `source` - `"yfinance"` or `"yahoo-rss"`
- `note` - With `yahoo-rss`: items are tagged to the ticker, not necessarily about it, and arrive newest first. `publisher` is the link's host (often `finance.yahoo.com`), since the feed carries no publisher
- `message: "No news found"` - both sources answered with no articles
- `error` - no articles and at least one source failed; never read this as "no news"

Present key headlines and note any significant news that could impact the stock. Judge the sentiment from the headlines yourself. With `yahoo-rss`, skip market-wide stories that are not about the company when assessing its sentiment.

## Dependencies

- `yfinance`


## Timezone

All timestamps and time-based calculations must use the `America/New_York` timezone. All JSON output must include `generated_at` (NY time string) and `data_delay` fields.

Files in this skill

  • SKILL.md1 KB
  • scripts/news.py718 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.