wolfjkd-trader-data: Multi-Source Data Acquisition Skill for A-Share Trading

Introduction

When conducting A-share (Chinese stock market) related analysis in environments like Cursor or Claude Code, the common practice is to temporarily piece together curl commands, Python scripts, or fragmented MCPs. Market data, announcements, and deep financial data are often scattered across different sources, and manual script modifications are required when a specific interface fails. The wolfjkd-trader-data introduced below adopts a universal SKILL.md format, embedding “data source selection, deployment steps, fault tolerance, and routing” into a Skill. This allows the Agent to fetch data according to the documentation rather than exploring from scratch every time.

What is this

wolfjkd-trader-data (coordinates @user_abc07f4d/wolfjkd-trader-data, currently v3.0.0) is a data-analysis Skill published by the SkillHub community (community). It is published by user_abc07f4d, while the Skill content is maintained by wolfjkd and licensed under MIT. It is positioned as a complete solution for A-share trader data acquisition and includes multi-source intelligent routing (data_router.py).

The SkillHub tags indicate requires_api_key=true, which primarily corresponds to the API Key required for deep data like Wind. Paths for Tencent market data, ftshare announcements, etc., are marked in the documentation as requiring no Key or being optional configurations.

On SkillHub, this Skill has a rating of 100000 and 825 downloads (statistics are based on the SkillHub page).

Core Features

The following capabilities are derived from the descriptions in SKILL.md and data_router.py within the Skill package. You can verify them against the installed directory.

Five Data Categories and Primary Data Sources

Data Type Primary Source Description
Market Data Tencent Interface Millisecond-level real-time snapshots for indices, watchlists, US indices, commodities, digital currencies, etc.
Announcement Data ftshare Historical announcements for single stocks, market-wide daily announcements, etc.
News Data WebSearch Fallback search method documented in the Skill.
Commodities, etc. Tencent Interface Same interface category as Market Data.
Deep Data Wind Financials, capital flows, sectors, macro, announcement RAG, technical indicators, etc.; requires API Key.

Example Tencent market data interface (excerpt from documentation):

https://qt.gtimg.cn/q=sh000001,sz399001,sz399006

Multi-source Intelligent Routing (data_router.py)

Starting from v3.0, data_router.py is built-in: it performs parallel probing on adapters for Tencent, Wind, ftshare, etc. It calculates a weighted score based on availability, timeliness, and quality. It prioritizes sources with ≥50 points and selects the faster response when scores are close. The script depends only on the Python 3 standard library (the routing itself requires no additional pip packages).

Common CLI commands:

python data_router.py health
python data_router.py quote --codes sh000001 --json
python data_router.py watchlist --json
python data_router.py compare --code 600519.SH --type quote

The watchlist can be edited within the WATCHLIST list in data_router.py.

Supporting Skills and AkShare

The complete stack documented also includes: the ftshare announcement Skill, Wind’s wind-mcp-skill / wind-find-finance-skill, and optional AkShare (e.g., Tencent historical K-lines stock_zh_a_hist_tx). The documentation also records alternative paths (Tencent curl, Wind, WebSearch) for when certain Eastmoney AkShare interfaces may become unavailable.

Installation and Activation

First, ensure skillhub is installed on your local machine (see SkillHub Installation Instructions for installation methods). When installing the Skill, you must use the --dir flag to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.

command -v skillhub && skillhub --version

skillhub search wolfjkd-trader-data

skillhub install wolfjkd-trader-data --namespace user_abc07f4d --dir <your skills directory>

The SkillHub page also supports using natural language to instruct the Agent to install according to the same documentation:

Please install `@user_abc07f4d/wolfjkd-trader-data` according to https://skillhub.cn/install/skillhub.md.

Skills Directories for Various Clients (Excerpt)

Environment Typical Path
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Skill index as required by the client. Extended data sources (ftshare, Wind, etc.) need to be installed separately and configured with Keys according to the commands in SKILL.md. If Wind is not installed, the routing will automatically degrade; the corresponding errors and handling methods are explained in the documentation.

Typical Usage

1. Quick Verification of Tencent Market Data

curl -s "https://qt.gtimg.cn/q=sh000001"

2. Routing Health Check and JSON Market Data

Execute in the Skill directory:

python data_router.py health
python data_router.py quote --codes sh000001,sz399001,sz399006 --json

For evening reporting workflows, the documentation suggests: run health first, then obtain JSON output via quote / watchlist. Select sources for announcements and news based on health results and annotate the sources and scores in the report.

3. ftshare Announcements (ftshare Skill must be installed first)

python <FTSHARE_SKILL_DIR>/run.py \
  stock-announcements-single-stock-all-periods \
  --stock-code 600519.SH \
  --page 1 --page-size 10

Stock code format examples: Shanghai 600519.SH, Shenzhen 000001.SZ.

4. Wind Deep Queries (API Key Required)

node <WIND_SKILL_DIR>/scripts/cli.mjs setup-key <YOUR_KEY> --scope global

node <WIND_SKILL_DIR>/scripts/cli.mjs call stock_data get_stock_price_indicators \
  '{"windcode":"600519.SH","indexes":"中文简称,最新成交价,涨跌幅,成交量,换手率,市盈率(TTM),市净率"}'

When using Wind data, the documentation requires that results be annotated with “Data source: Wind Financial Data Service”.

Applicable Scenarios and Notes

Suitable for: Developers and traders who need stable acquisition of A-share market data and announcements within Agent workflows, wish to use data_router.py for source health probing and selection, or plan to set up scheduled tasks (health check + JSON market data) according to the documentation.

Limitations and Notes (Excerpted from Skill documentation):

  • Eastmoney-related AkShare interfaces may be rejected; alternatives via Tencent or Wind are required.
  • Wind has a daily call quota; prioritize Tencent for real-time snapshots and use Wind for deep analysis.
  • Wind handles a single tool per single asset; batch processing requires loop calls.
  • data_router.py currently covers three main adapters with no short-term caching; Wind consistency checks for nested JSON parsing remain imperfect.
  • Market and compliance data are for technical research only and do not constitute investment advice; external interface availability varies with network and vendor strategies.

Conclusion

wolfjkd-trader-data encapsulates multi-source A-share acquisition and v3.0 intelligent routing into an installable Skill, serving as a data-layer “operation manual” for Agents.

Official SkillHub page and API entry:

  • https://www.skillhub.cn/skills/user_abc07f4d/wolfjkd-trader-data
  • https://api.skillhub.cn/user_abc07f4d/wolfjkd-trader-data
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye