获取A股上市公司公告信息(真实数据)。基于AkShare从东方财富网获取当日全部公告,支持按股票代码筛选、关键词过滤。 适用于监控重大事件、业绩快报、股东变动、重组公告等投资决策关键信息。数据源:东方财富网(稳定可靠)。
获取A股上市公司的官方公告信息(真实数据),帮助投资者及时掌握重要信息披露。
Python packages (install once):
pip install akshare pandas requests PyPDF2
触发条件(用户提及以下任一场景时激活):
IMPORTANT: Always use the $SKILLS_ROOT environment variable to locate scripts.
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 600519 --days 7
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 600519 --keyword 业绩
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858 --format json
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" 000858 --detail
| 参数 | 说明 | 示例 | 默认值 |
|---|---|---|---|
stock_code | 股票代码(必填) | 000001, 600000.SS | - |
--days | 最近N天 | 7 | 30 |
--format | 输出格式 | json/text | text |
--keyword | 标题关键词筛选 | 业绩 | None |
--detail | 提取PDF内容并总结 | — | false |
用户可能提供以下任一格式:
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-announcements/scripts/announcements.py" <股票代码> [参数]
Agent 应该:
stock_notice_report 接口只返回指定日期的全部公告--format json 可规避