Get the FREE Ultimate OpenClaw Setup Guide →

news-sentiment

npx machina-cli add skill staskh/trading_skills/news-sentiment --openclaw
Files (1)
SKILL.md
851 B

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

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

  1. Step 1: Run the tool with a symbol, e.g., uv run python scripts/news.py SYMBOL [--limit LIMIT].
  2. Step 2: If uv is not available, use python scripts/news.py SYMBOL [--limit LIMIT].
  3. 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

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers