news_sentiment
Fetch recent headlines for a stock ticker, fall back to Yahoo RSS when needed, and distinguish source errors from true no-news results.
Instructions
Get recent news headlines for a stock.
Falls back from yfinance to Yahoo's RSS feed (source='yahoo-rss'), whose items are tagged to the ticker and may include market-wide stories. An 'error' means a source failed; only message='No news found' means there is no news.
Args: symbol: Ticker symbol limit: Number of articles to return (default 10)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| symbol | Yes |