According to AlphaMoat, as of 2026-09, Stock Data Collector has 1,646 downloads and 0 stars — ranked #4,676 of 5,078 AI skills overall, and #367 of 399 in Data Analysis.
| Platform | Installs | Downloads | Stars | Comments |
|---|---|---|---|---|
| ClawHub ↗ | 38 | 1.6K | - | - |
| SkillHub ↗ | 226 | 1.6K | - | — |
Platforms count differently and update at different times.
A-shares cover the Shanghai (600xxx, 688xxx) and Shenzhen (000xxx, 001xxx, 300xxx) exchanges; Hong Kong stocks cover HKEX codes (0xxxx, 1xxxx, 8xxxx). Periods include daily/weekly/monthly and minute bars (1min/5min/15min/30min/60min), defaulting to daily, with a default start date of 20000101. Single stocks use python3 scripts/fetch_stock.py --code 600519 --market A; batches use python3 scripts/batch_fetch.py --codes 600519,000001,06618 --markets A,A,HK or a stock-list file. Data comes from akshare (A-shares, free and open source) and akshare + yfinance (Hong Kong stocks); dependencies install via pip install akshare yfinance pandas. Output is UTF-8 CSV named like 贵州茅台_600519_A_daily.csv. The minute-level periods are documented but the security guidance reports they are not implemented correctly, so daily/weekly/monthly are preferable; Hong Kong fields may differ by data source.
Profile published 2026-10-29
Generated from the skill’s documentation as examples; not results of actual runs.
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.
| Month | Downloads | MoM | Stars |
|---|---|---|---|
| 2026-09 | 1.6K | — | - |
| 2026-08 | 1.4K | +12.8% | - |
| 2026-07 | 1.3K | +18.8% | - |
| 2026-06 | 1.1K | +6.3% | - |
| 2026-05 | 993 | — | - |
| 2026-03 | 720 | — | - |
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.
--- name: stock-data-collector description: 采集A股和港股指定股票的历史数据。支持多股票批量采集、多种时间周期(日线/周线/月线/分钟线)、数据导出为CSV格式。使用场景:(1) "采集贵州茅台和腾讯的历史数据",(2) "批量采集我的自选股",(3) "获取某只股票的所有历史数据"。 --- # 股票历史数据采集技能 采集A股和港股指定股票的历史数据,支持批量采集和多周期数据。 ## 支持的市场
- **A股**:上海证券交易所(600xxx, 688xxx)、深圳证券交易所(000xxx, 001xxx, 300xxx)
- **港股**:香港联合交易所(0xxxx, 1xxxx, 8xxxx)
## 快速开始
### 单只股票采集
```bash
# A股示例:贵州茅台(600519)
python3 scripts/fetch_stock.py --code 600519 --market A
# 港股示例:京东健康(06618)
python3 scripts/fetch_stock.py --code 06618 --market HK
```
### 批量采集
```bash
# 从列表文件批量采集
python3 scripts/batch_fetch.py --file stock_list.txt
# 命令行指定多只股票
python3 scripts/batch_fetch.py --codes 600519,000001,06618 --markets A,A,HK
```
## 详细用法
### 单只股票采集脚本
```bash
python3 scripts/fetch_stock.py [选项]
选项:
--code CODE 股票代码(必需)
--market MARKET 市场:A=A股,HK=港股(必需)
--period PERIOD 时间周期:daily/weekly/monthly/1min/5min/15min/30min/60min(默认:daily)
--start DATE 开始日期:YYYYMMDD(默认:20000101)
--end DATE 结束日期:YYYYMMDD(默认:今天)
--output DIR 输出目录(默认:./stock_data)
--name NAME 股票名称(可选,自动获取)
```
示例:
```bash
# 采集贵州茅台日线数据
python3 scripts/fetch_stock.py --code 600519 --market A
# 采集腾讯控股周线数据
python3 scripts/fetch_stock.py --code 00700 --market HK --period weekly
# 采集指定时间范围
python3 scripts/fetch_stock.py --code 600519 --market A --start 20200101 --end 20231231
```
### 批量采集脚本
```bash
python3 scripts/batch_fetch.py [选项]
选项:
--file FILE 股票列表文件(每行格式:代码,市场,名称)
--codes CODES 股票代码列表,逗号分隔
--markets MARKETS 市场列表,逗号分隔(A=A股,HK=港股)
--names NAMES 股票名称列表,逗号分隔(可选)
--period PERIOD 时间周期(默认:daily)
--output DIR 输出目录(默认:./stock_data)
```
示例:
```bash
# 从文件批量采集
python3 scripts/batch_fetch.py --file my_stocks.txt
# 命令行批量采集
python3 scripts/batch_fetch.py --codes 600519,000001,06618 --markets A,A,HK
# 批量采集并指定输出目录
python3 scripts/batch_fetch.py --file my_stocks.txt --output ./my_portfolio_data
```
### 股票列表文件格式
创建一个文本文件,每行一只股票:
```
# my_stocks.txt
# 格式:股票代码,市场,股票名称(名称可选)
600519,A,贵州茅台
000001,A,平安银行
00700,HK,腾讯控股
06618,HK,京东健康
300750,A,宁德时代
```
## 数据源
- **A股数据**:akshare(免费开源)
- **港股数据**:akshare + yfinance
## 数据字段
### A股数据字段
- 日期、开盘、收盘、最高、最低、成交量、成交额、振幅、涨跌幅、涨跌额、换手率
### 港股数据字段
- 日期、开盘、收盘、最高、最低、成交量、成交额(根据数据源可能有所不同)
## 输出格式
所有数据导出为 **CSV 格式**,UTF-8编码,可直接用 Excel、Pandas 等工具打开。
文件命名规则:
```
{股票名称}_{股票代码}_{市场}_{周期}.csv
示例:贵州茅台_600519_A_daily.csv
```
## 依赖安装
```bash
# 安装必需的库
pip install akshare yfinance pandas
```
## 技能文件结构
```
stock-data-collector/
├── SKILL.md # 本文件
├── scripts/
│ ├── fetch_stock.py # 单只股票采集脚本
│ ├── batch_fetch.py # 批量采集脚本
│ └── example_list.txt # 股票列表示例
└── examples/ # 示例文件(可选)
```
## 常见问题
**Q: 如何知道某只股票的代码?**
A: A股600xxx/688xxx是沪市,000xxx/001xxx/300xxx是深市;港股是5位数字。
**Q: 采集失败怎么办?**
A: 检查网络连接,确认股票代码正确。部分港股可能需要用 yfinance 作为备选数据源。
**Q: 数据频率有哪些选项?**
A: 支持 daily(日线)、weekly(周线)、monthly(月线)、以及分钟级数据(1min/5min/15min/30min/60min)。
The data layer for AdMapix: turn ad and app queries into API calls that return raw JSON only.
Searches the public web through Tavily and returns structured results with links and snippets.
A data-analysis skill that turns databases, spreadsheets, and raw exports into decision-ready conclusions.
A skill that analyzes stocks and cryptocurrencies on Yahoo Finance data and tracks a portfolio.
Manages a local stock watchlist and summarizes recent quotes for its codes from the Tonghuashun stock pages.
知了标讯: Searches and analyzes tender, award, supplier, and procurement-market information.
Track blog and RSS/Atom feed updates from the command line.
Summarises per-model usage cost for Codex or Claude.
Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.