← Back to Skills Marketplace
wang-junjian

Stock Data Collector

by 军舰 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
571
Downloads
0
Stars
6
Active Installs
2
Versions
Install in OpenClaw
/install stock-data-collector
Description
采集A股和港股指定股票的历史数据。支持多股票批量采集、多种时间周期(日线/周线/月线/分钟线)、数据导出为CSV格式。使用场景:(1) "采集贵州茅台和腾讯的历史数据",(2) "批量采集我的自选股",(3) "获取某只股票的所有历史数据"。
Usage Guidance
This skill is internally consistent and implements local CSV export using akshare and yfinance. Before running: (1) install dependencies in a virtualenv (pip install akshare yfinance pandas); (2) be aware the scripts make network calls to data providers (akshare/yfinance) — ensure you are comfortable with those libraries and their network access; (3) test on a small sample to confirm minute-level data behaviour (there is a mismatch: batch mode limits periods to daily/weekly/monthly); (4) run in an isolated environment if you want to limit risk from third‑party packages. No credentials are required and the scripts only write files to the local output directory.
Capability Analysis
Type: OpenClaw Skill Name: stock-data-collector Version: 1.0.1 The skill bundle is a legitimate tool for collecting historical stock data for A-shares and HK-shares. The Python scripts (fetch_stock.py and batch_fetch.py) use standard financial data libraries like akshare and yfinance to retrieve data and save it locally as CSV files. There is no evidence of malicious intent, data exfiltration, or prompt injection in the code or documentation.
Capability Assessment
Purpose & Capability
Name/description describe historical stock data collection; included scripts implement fetching via akshare and yfinance and exporting CSVs. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
The SKILL.md and scripts largely align (instructions call the included scripts). Small inconsistency: SKILL.md and fetch_stock.py mention minute-level intervals, but batch_fetch.py restricts period choices to daily/weekly/monthly and the A‑market fetching logic only maps daily/weekly/monthly — minute-level collection is not implemented for A shares in batch mode. This is a functionality/documentation mismatch, not malicious scope creep.
Install Mechanism
No install spec in registry; the README recommends installing Python packages via pip (akshare, yfinance, pandas). No downloads from arbitrary URLs or archive extraction are present.
Credentials
The skill requests no environment variables or credentials. It uses third‑party Python libraries for data retrieval — no secrets are required or used.
Persistence & Privilege
always is false; the skill is user-invocable and can be invoked by the agent normally. It does not modify other skills or system configuration and only writes CSV files to a user-specified output directory.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install stock-data-collector
  3. After installation, invoke the skill by name or use /stock-data-collector
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
No user-visible changes in this version. - Version number updated to 1.0.1. - No file changes detected from previous release.
v1.0.0
Initial release of stock-data-collector skill. - Supports collecting historical stock data for A-shares and Hong Kong stocks. - Allows batch collection of multiple stocks and multiple time periods (daily, weekly, monthly, minute lines). - Exports results as CSV files, compatible with Excel and Pandas. - Provides separate scripts for single and batch stock data collection. - Customizable data period and output location. - Easy-to-follow documentation, including usage examples and stock list file format.
Metadata
Slug stock-data-collector
Version 1.0.1
License MIT-0
All-time Installs 7
Active Installs 6
Total Versions 2
Frequently Asked Questions

What is Stock Data Collector?

采集A股和港股指定股票的历史数据。支持多股票批量采集、多种时间周期(日线/周线/月线/分钟线)、数据导出为CSV格式。使用场景:(1) "采集贵州茅台和腾讯的历史数据",(2) "批量采集我的自选股",(3) "获取某只股票的所有历史数据"。 It is an AI Agent Skill for Claude Code / OpenClaw, with 571 downloads so far.

How do I install Stock Data Collector?

Run "/install stock-data-collector" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Stock Data Collector free?

Yes, Stock Data Collector is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Stock Data Collector support?

Stock Data Collector is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Stock Data Collector?

It is built and maintained by 军舰 (@wang-junjian); the current version is v1.0.1.

💬 Comments