stock-announcements
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStock 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 PyPDF2Python packages (install once):
bash
pip install akshare pandas requests PyPDF2When to Use This Skill
When to Use This Skill
触发条件(用户提及以下任一场景时激活):
- 查询特定公司公告 — "查看五粮液最近的公告"、"002368有什么新公告?"
- 监控特定事件 — "哪些公司今天发布了业绩预告?"
- 投资决策辅助 — "公司有利好消息吗?"
Trigger conditions (activate when the user mentions any of the following scenarios):
- Query announcements of specific companies — "Check recent announcements of Wuliangye", "Any new announcements for 002368?"
- Monitor specific events — "Which companies released performance forecasts today?"
- Investment decision support — "Does the company have any positive news?"
Usage
Usage
IMPORTANT: Always use the environment variable to locate scripts.
$SKILLS_ROOTIMPORTANT: Always use the environment variable to locate scripts.
$SKILLS_ROOT基础查询
Basic Query
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858bash
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 7bash
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 jsonbash
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 --detailbash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858 --detailParameters
Parameters
| 参数 | 说明 | 示例 | 默认值 |
|---|---|---|---|
| 股票代码(必填) | 000001, 600000.SS | - |
| 最近N天 | 7 | 30 |
| 输出格式 | json/text | text |
| 标题关键词筛选 | 业绩 | None |
| 提取PDF内容并总结 | — | false |
| Parameter | Description | Example | Default Value |
|---|---|---|---|
| Stock code (required) | 000001, 600000.SS | - |
| Recent N days | 7 | 30 |
| Output format | json/text | text |
| Title keyword filtering | 业绩 | None |
| Extract PDF content and summarize | — | false |
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 应该:
- 提取关键信息(标题、类型、日期)
- 分类汇总(业绩类、股东类、重大合同等)
- 标注重要性(🔴高/🟡中/⚪低)
- 提供简洁解读
The Agent should:
- Extract key information (title, type, date)
- Classify and summarize (performance-related, shareholder-related, major contracts, etc.)
- Mark importance (🔴High/🟡Medium/⚪Low)
- Provide concise interpretations
Limitations
Limitations
- 只能查询当日公告 — AkShare 的 接口只返回指定日期的全部公告
stock_notice_report - 查询速度约7-10秒 — 需遍历1000+条公告
- 中文显示乱码 — Windows PowerShell GBK编码问题,使用 可规避
--format json
- Only able to query same-day announcements — AkShare's interface only returns all announcements for the specified date
stock_notice_report - Query speed is about 7-10 seconds — Needs to traverse over 1000 announcements
- Chinese display garbled characters — Windows PowerShell GBK encoding issue, using can avoid this
--format json