mcpField
N
news-sentiment

news-sentiment

github.com/staskhOther394243 installsUpdated 1d ago
Repository

About news-sentiment

news-sentiment is a command-line skill that retrieves recent Yahoo Finance news for a ticker and returns article details with a brief overall sentiment summary. It is intended for stock-news review, with timestamps based on America/New_York time.

Key features

  1. 01Fetch recent Yahoo Finance news
  2. 02Select ticker and article limit
  3. 03Return headlines, publishers, dates, and links
  4. 04Summarize overall news sentiment
  5. 05Include New York generation time and data delay

Use cases

  1. 01Review recent news about a stock
  2. 02Find headlines that may affect a ticker
  3. 03Prepare a concise news sentiment brief

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/staskh/trading_skills --skill news-sentiment

After installing, type/news-sentimentin Claude Code to confirm it loaded.

Bundled filesscripts/news.py

Details

From the project README

News Sentiment

Fetch recent news from Yahoo Finance.

Instructions

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in 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, link
  • summary - Brief summary of overall sentiment

Present key headlines and note any significant news that could impact the stock.

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.

Comments

Markdown supported