Stepeno

A股上市公司公告

Data Analysisv1.0.1
By StepenoUpdated 2026-05-112 versions · latest released 2026-03-16cn-stock-announcements@clawhub_noahstepheno/cn-stock-announcements
Web Scraping#Stock

According to AlphaMoat, as of 2026-09, A股上市公司公告 has 2,290 downloads and 1 stars — ranked #4,238 of 5,078 AI skills overall, and #321 of 399 in Data Analysis.

Installs
324
Downloads
2.3K
Stars
1
Overall Rank
#4,238
Top 84% overall · Top 81% in Data Analysis
PlatformInstallsDownloadsStarsComments
ClawHub ↗381.5K1-
SkillHub ↗3242.3K1—

Platforms count differently and update at different times.

What this skill does

Python examples query individual or multiple stock codes, keywords and time ranges and return announcement details with source links. Shenzhen results can be filtered locally to time precision, while Shanghai provides date-level data and cannot support second-level filtering. Requests use documented HTTP endpoints: avoid sensitive queries, review dependencies and independently verify disclosures before using them in financial decisions.

Profile published 2026-10-27

What you can do with it

  • Retrieve and review A-share disclosure links

When to use it

  • When Shanghai or Shenzhen announcements need code, keyword or date filtering

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Confirm codes and the date window, explain each exchange’s time precision and prepare linked results for verification.

Monthly Trend

Downloads2.3K
4801.5K2.4K2026-03 · Downloads 6142026-05 · Downloads 1.1K2026-06 · Downloads 1.3K2026-07 · Downloads 1.5K2026-08 · Downloads 1.7K2026-09 · Downloads 2.3K26-0326-09
Stars1
0122026-03 · Stars 12026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.3K—1
2026-081.7K+13.7%1
2026-071.5K+17.5%1
2026-061.3K+13.4%1
2026-051.1K—1
2026-03614—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.5 KB · ClawHub v1.0.1
---
name: cn-stock-announcements
description: "A tool to query Chinese listed company announcements from SZSE (Shenzhen Stock Exchange) and SSE (Shanghai Stock Exchange). Supports single/batch stock queries, keyword searches, and exact time-range filtering."
---

# Chinese Stock Announcements (SZSE & SSE)

这个技能用于查询中国A股上市公司(上交所、深交所)的官方信息披露与公告。它可以作为独立脚本供人类或大模型使用,也可以作为 OpenClaw 插件直接集成在 Python 代码中。

## 使用场景
Show all (85 lines)

- 用户需要查询某只特定股票(如平安银行 000001、浦发银行 600000)的最新公告时。
- 用户想批量追踪多只股票的动向时。
- 用户想通过**关键词**(如"年报"、"重组"、"分红")来搜索两市所有相关的公告时。
- 用户需要限定特定的时间范围(精确到时分秒)来过滤公告时。

## 工作流程

当用户请求查询股票公告时,大模型应该直接调用本项目提供的 `stock_plugin.py` 脚本来获取数据,并格式化输出给用户。

### 方式一:命令行/脚本直接调用 (CLI)
你可以直接执行 Python 代码来调用该模块:

```bash
# 例子:查询包含关键词且在指定时间内的公告
python3 -c "
import json
from stock_plugin import StockAnnouncementPlugin
plugin = StockAnnouncementPlugin()
res = plugin.query_announcements(
    keyword='年报',
    start_date='2024-03-15 00:00:01',
    end_date='2024-03-16 00:00:01',
    limit=5
)
print(json.dumps(res, indent=2, ensure_ascii=False))
"
```

### 方式二:在 OpenClaw 工作流中调用 (Python 代码编写)
如果用户要求你编写一段使用该功能的 OpenClaw 代码,你可以按照以下方式组织代码:

```python
from openclaw2 import OpenClaw
from stock_plugin import StockAnnouncementPlugin

# 初始化 OpenClaw 客户端
client = OpenClaw.remote(api_key="your_api_key")

# 安装股票公告查询插件
client.use(StockAnnouncementPlugin())

# 让大模型 Agent 调用插件获取数据
results = client.pipeline([
    "请帮我查询 000001 和 600000 从 2024-03-15 00:00:01 到 2024-03-16 00:00:01 发布关于「年报」的公告"
])

print(results[-1])
```

## 参数说明

`StockAnnouncementPlugin.query_announcements` 支持以下参数:

| 参数 | 类型 | 说明 | 示例 |
|---|---|---|---|
| `stock_codes` | `List[str]` | 股票代码列表(可选) | `["000001", "600000"]` |
| `keyword` | `str` | 搜索关键词(可选) | `"年报"` |
| `start_date` | `str` | 起始时间(精确到秒或天) | `"2024-03-15 00:00:01"` 或 `"2024-03-15"` |
| `end_date` | `str` | 结束时间(精确到秒或天) | `"2024-03-16 00:00:01"` 或 `"2024-03-16"` |
| `limit` | `int` | 单个交易所返回的最大结果数 | `10` (默认) |

### ⚠️ 时间过滤规则注意:
1. **深交所 (SZSE)**:原生 API 请求体支持传入日期(`YYYY-MM-DD`)获取粗略范围,随后通过脚本在本地自动进行**精确到时分秒**的二次过滤筛选。
2. **上交所 (SSE)**:原生 API 仅支持日期级别(`YYYY-MM-DD`)的检索和返回,所以插件会自动截取传入时间的日期部分进行检索。上交所数据由于没有时分秒属性,不支持秒级精确过滤。

## 技能资源
- `stock_plugin.py`:核心逻辑文件,包含 `StockAnnouncementPlugin` 类及沪深两市的抓取和过滤逻辑。使用标准 requests 库实现,无需复杂环境。

## 前置条件
需要安装 requests 库:
```bash
pip install requests
```

Popular in Data Analysis

AdMapixData Analysis

The data layer for AdMapix: turn ad and app queries into API calls that return raw JSON only.

↓ 365.6K★ 304fly0pants
Tavily SearchData Analysis

Searches the public web through Tavily and returns structured results with links and snippets.

↓ 121.9K★ 286Xiaoran Li
Data AnalysisData Analysis

A data-analysis skill that turns databases, spreadsheets, and raw exports into decision-ready conclusions.

↓ 101.2K★ 244Iván
Stock AnalysisData Analysis

A skill that analyzes stocks and cryptocurrencies on Yahoo Finance data and tracks a portfolio.

↓ 75.3K★ 299udiedrichsen
Stock WatcherData Analysis

Manages a local stock watchlist and summarizes recent quotes for its codes from the Tonghuashun stock pages.

↓ 64.8K★ 122Robin797860
全国招标中标查询及分析【知了标讯】Data Analysis

全网招中标数据查询与分析助手。当用户涉及以下任何场景时,必须使用此SKILL:查询招标/中标公告、搜索标讯、查找临期/即将到期项目、商机预测、推荐潜在投标供应商、分析公司主营业务/历史中标、查询公司上下游合作客户与供应商、分析竞争对手/竞对企业、查询Top采购单位/Top中标单位/Top中标品牌、招中标数据统计分析(按月/季/年/省份/品牌等维度)、查询品牌型号历史中标单价/价格趋势、市场分析/行业分析/采购寻源/渠道拓展等采购与投标相关场景。即使用户没有提到「知了标讯」,只要涉及招投标、采购、中标、供应商、竞争对手等关键词,都应使用本SKILL。

↓ 56.5K★ 13user_98035bfb
BlogwatcherData Analysis

Track blog and RSS/Atom feed updates from the command line.

↓ 54.0K★ 75Peter Steinberger
Model UsageData Analysis

Summarises per-model usage cost for Codex or Claude.

↓ 49.5K★ 114Peter Steinberger

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.