news-sentiment

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

News Sentiment

新闻情绪分析

Fetch recent news from Yahoo Finance.
从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.
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

参数

  • SYMBOL
    - Ticker symbol
  • --limit
    - Number of articles (default: 10)
  • SYMBOL
    - 股票代码
  • --limit
    - 文章数量(默认值: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.
返回包含以下内容的JSON:
  • articles
    - 包含标题、发布方、日期、链接的近期新闻数组
  • summary
    - 整体情绪的简要总结
展示关键头条新闻,并标注可能影响该股票的重要新闻。

Dependencies

依赖项

  • yfinance
  • 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.
所有时间戳和基于时间的计算必须使用
America/New_York
时区。所有JSON输出必须包含
generated_at
(纽约时间字符串)和
data_delay
字段。