news-sentiment
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNews Sentiment
新闻情绪分析
Fetch recent news from Yahoo Finance.
从Yahoo Finance获取近期新闻。
Instructions
使用说明
Note: Ifis not installed oruvis not found, replacepyproject.tomlwithuv run pythonin all commands below.python
bash
uv run python scripts/news.py SYMBOL [--limit LIMIT]注意: 若未安装或未找到uv,请将以下所有命令中的pyproject.toml替换为uv run python。python
bash
uv run python scripts/news.py SYMBOL [--limit LIMIT]Arguments
参数
- - Ticker symbol
SYMBOL - - Number of articles (default: 10)
--limit
- - 股票代码
SYMBOL - - 文章数量(默认值:10)
--limit
Output
输出
Returns JSON with:
- - Array of recent news with title, publisher, date, link
articles - - Brief summary of overall sentiment
summary
Present key headlines and note any significant news that could impact the stock.
返回包含以下内容的JSON:
- - 包含标题、发布方、日期、链接的近期新闻数组
articles - - 整体情绪的简要总结
summary
展示关键头条新闻,并标注可能影响该股票的重要新闻。
Dependencies
依赖项
yfinance
yfinance
Timezone
时区
All timestamps and time-based calculations must use the timezone. All JSON output must include (NY time string) and fields.
America/New_Yorkgenerated_atdata_delay所有时间戳和基于时间的计算必须使用时区。所有JSON输出必须包含(纽约时间字符串)和字段。
America/New_Yorkgenerated_atdata_delay