stock-announcements

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Stock Announcement Fetcher

Stock Announcement Fetcher

获取A股上市公司的官方公告信息(真实数据),帮助投资者及时掌握重要信息披露。
Obtain official announcement information of A-share listed companies (real data) to help investors grasp important information disclosures in a timely manner.

真实数据保证

Real Data Guarantee

  • 数据来源: 东方财富网(通过AkShare开源库)
  • 更新频率: 实时(当日公告)
  • 覆盖范围: 全部A股上市公司
  • 数据质量: 官方权威数据
  • Data Source: Eastmoney.com (via AkShare open-source library)
  • Update Frequency: Real-time (same-day announcements)
  • Coverage: All A-share listed companies
  • Data Quality: Official and authoritative data

Dependencies

Dependencies

Python packages (install once):
bash
pip install akshare pandas requests PyPDF2
Python packages (install once):
bash
pip install akshare pandas requests PyPDF2

When to Use This Skill

When to Use This Skill

触发条件(用户提及以下任一场景时激活):
  1. 查询特定公司公告 — "查看五粮液最近的公告"、"002368有什么新公告?"
  2. 监控特定事件 — "哪些公司今天发布了业绩预告?"
  3. 投资决策辅助 — "公司有利好消息吗?"
Trigger conditions (activate when the user mentions any of the following scenarios):
  1. Query announcements of specific companies — "Check recent announcements of Wuliangye", "Any new announcements for 002368?"
  2. Monitor specific events — "Which companies released performance forecasts today?"
  3. Investment decision support — "Does the company have any positive news?"

Usage

Usage

IMPORTANT: Always use the
$SKILLS_ROOT
environment variable to locate scripts.
IMPORTANT: Always use the
$SKILLS_ROOT
environment variable to locate scripts.

基础查询

Basic Query

bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858

查询最近7天

Query Recent 7 Days

bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 600519 --days 7
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 600519 --days 7

关键词筛选

Keyword Filtering

bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 600519 --keyword 业绩
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 600519 --keyword 业绩

JSON格式输出

JSON Format Output

bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858 --format json
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858 --format json

提取PDF内容并总结

Extract PDF Content and Summarize

bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858 --detail
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858 --detail

Parameters

Parameters

参数说明示例默认值
stock_code
股票代码(必填)000001, 600000.SS-
--days
最近N天730
--format
输出格式json/texttext
--keyword
标题关键词筛选业绩None
--detail
提取PDF内容并总结false
ParameterDescriptionExampleDefault Value
stock_code
Stock code (required)000001, 600000.SS-
--days
Recent N days730
--format
Output formatjson/texttext
--keyword
Title keyword filtering业绩None
--detail
Extract PDF content and summarizefalse

Workflow

Workflow

Step 1: 识别股票代码

Step 1: Identify Stock Code

用户可能提供以下任一格式:
  • 公司名称:"五粮液" → 先用 web-search 查询股票代码
  • Yahoo Finance格式:"000858.SZ" → 提取纯数字代码
  • 纯代码:"000858" → 直接传递
Users may provide any of the following formats:
  • Company name: "Wuliangye" → First use web-search to query the stock code
  • Yahoo Finance format: "000858.SZ" → Extract the pure numeric code
  • Pure code: "000858" → Pass directly

Step 2: 执行查询

Step 2: Execute Query

bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" <股票代码> [参数]
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" <stock_code> [parameters]

Step 3: 解读结果

Step 3: Interpret Results

Agent 应该:
  1. 提取关键信息(标题、类型、日期)
  2. 分类汇总(业绩类、股东类、重大合同等)
  3. 标注重要性(🔴高/🟡中/⚪低)
  4. 提供简洁解读
The Agent should:
  1. Extract key information (title, type, date)
  2. Classify and summarize (performance-related, shareholder-related, major contracts, etc.)
  3. Mark importance (🔴High/🟡Medium/⚪Low)
  4. Provide concise interpretations

Limitations

Limitations

  1. 只能查询当日公告 — AkShare 的
    stock_notice_report
    接口只返回指定日期的全部公告
  2. 查询速度约7-10秒 — 需遍历1000+条公告
  3. 中文显示乱码 — Windows PowerShell GBK编码问题,使用
    --format json
    可规避
  1. Only able to query same-day announcements — AkShare's
    stock_notice_report
    interface only returns all announcements for the specified date
  2. Query speed is about 7-10 seconds — Needs to traverse over 1000 announcements
  3. Chinese display garbled characters — Windows PowerShell GBK encoding issue, using
    --format json
    can avoid this