a-stock-data packages A-share and related market data from 34 sources into 87 endpoints through a single self-contained SKILL.md file that AI coding assistants can use directly. It addresses the problem that A-share data is scattered across sources with incompatible parameters, binary formats, and header/auth quirks that make direct fetching difficult.
Project overview
It consolidates 34 scattered A-share data sources into 87 endpoints in one copy-in file, with all integrated sources except optional iwencai requiring no registration or API key, and a backup-source quick reference that allows degraded operation when a primary source is blocked.
Project type
Data Processing
Use cases
Automation
Deployment
Refer to project documentation
License
Apache-2.0
Best for
Developers who use AI coding assistants and need to fetch raw A-share and related market data without adapting to 34 scattered sources individually.
Key capabilities
A single SKILL.md file (structured Markdown with embedded Python) that packages A-share and related market data access for AI coding assistants; copy one file and it works.
All integrated data sources except iwencai require no user registration or API key.
Limitations and risks
The skill only fetches data and does not include a backtesting engine.
Eastmoney endpoints have rate-limit risk controls that can ban the user's IP; they are throttled via em_get().
Getting started
Create the skill directory with mkdir -p ~/.claude/skills/a-stock-data, download the skill file with curl -o ~/.claude/skills/a-stock-data/SKILL.md https://raw.githubusercontent.com/simonlin1212/a-stock-data/main/SKILL.md, then install dependencies with pip install mootdx requests pandas stockstats numpy baostock xlrd openpyxl.