Free A-Share + US/HK Stock Data Sources Unlocked! Claude Becomes Your Quant Analyst

📡 AI News 2026-07-21 3 min read

A GitHub repo called simonlin1212/a-stock-data hit 4000+ Stars and 800+ Forks in just one month after V3.0. Its sibling simonlin1212/global-stock-data (US + HK stocks) also hit 300+ Stars. Together, they consolidate scattered data sources (mootdx, East Money, SEC EDGAR, Yahoo…) into two AI-ready Skill files — Claude Code, Codex, or OpenClaw can load them directly.

💡 What You Will Learn

A GitHub repo called simonlin1212/a-stock-data hit 4000+ Stars and 800+ Forks in just one month after V3.0. Its sibling simonlin1212/global-stock-data (US + HK stocks) also hit 300+ Stars. Together, t

📜 Table of Contents

Free A-Share + US/HK Stock Data Sources Unlocked! Claude Becomes Your Quant Analyst

GitHub has a repo called simonlin1212/a-stock-data, created on May 11, hitting 4000+ Stars and 800+ Forks in one month after V3.0.

Its sibling simonlin1212/global-stock-data (US + HK stocks) launched simultaneously, achieving 300+ Stars in its first month.

Together, these two repos consolidate data from dozens of scattered sources (mootdx, East Money push2, cninfo, SEC EDGAR, Yahoo…) into two Skill files that AI coding assistants (Claude Code / Codex / OpenClaw) can load with one click.

In plain English: you tell Claude Code "check the valuation of 688017" — it no longer responds "I don't have real-time data." It pulls actual data, runs the formulas, and gives you the answer.

01. Three Genuinely Frustrating Problems Solved

First: East Money IP blocking. There's an old saying in the A-share quant community: "Everyone who builds an East Money interface eventually dies by East Money's IP blocking." Before V3.0, the author hit walls too — Baidu PAE getrelatedblock returning ResultCode 10003, all 4 Cailian Express news feeds returning 404, cninfo announcements hardcoding gssx0{code} for 601xxx stocks and missing data. V3.2 completely rebuilt the "data source priority" logic: Tongdaxin (mootdx) and Tencent Finance don't block IPs, so they take priority; East Money is only used for its unique data (capital flows, research reports, top traders), with a unified em_get() throttling entry point. All East Money endpoints have built-in serial rate limiting (≥1s interval + random jitter) + session reuse. You get the "anti-blocking" version just by copying the author's code.

Second: Authentication hell. US/HK stocks are even worse — Yahoo Finance's crumb auth flow, SEC EDGAR's CIK mapping, East Money's secid prefix (105. for US, 116. for HK), Tencent US/HK stock routing (us/r_hk suffixes)… These "must-know" prerequisites could fill a 30-page Python tutorial. global-stock-data packages all of this — 17 endpoints, 5 data sources, zero auth — just install the requests package and you're running.

Third: akshare's "heaviness." A-share veterans know akshare — tons of interfaces but also 12,000+ endpoints, 500+ data sources, 800MB+ dependencies, and 3-second cold start. The CSDN V3.0 overview explicitly says: "Say goodbye to akshare dependency." V3.0 stripped out akshare entirely, switching to direct HTTP API calls, 13 data sources, 27 endpoints, just four packages: mootdx + requests + pandas + stockstats. The key isn't "fewer packages" — it's "AI tools don't need to handle akshare's internal state" — LLMs often hit inconsistent interface signatures with akshare, and the author eliminated this risk entirely.

02. What Does the 7-Layer Architecture Cover?

Think of it as a complete "A-share + US/HK stock research checklist":

A-share version (7 layers, 27 endpoints): - Market data layer: K-lines (with MA5/10/20), Level 2 order book, PE/PB/market cap, index ETFs - Research layer: Reports list / PDF download / consensus EPS / natural language research search - Signal layer: Strong stocks, theme attribution, northbound capital, top traders, lockup expirations, sector comparison - Capital flow layer (V3.0 new): Margin trading, block trades, shareholder count, dividends, 120-day capital flow - News layer: Individual stock news, global news - Fundamental data layer: Quarterly reports (37 fields), F10 (9 categories), financial statements - Announcements layer: Full Shanghai/Shenzhen/Beijing exchange announcements

US/HK stock version (8 layers, 17 endpoints): - Adds options layer (Yahoo crumb option chain calls+puts) and SEC Filing layer (10-K/10-Q/8-K + 503 GAAP indicators)

In short, 99% of individual investor research scenarios are covered. Whether you're doing single-stock valuation (DCF model), sector rotation analysis, or backtesting a strategy, the data is ready.

Related Articles
2026-07-28
Sakana Fugu: Turning Multi-Agent Orchestration Into a Single Model — Japan's New Track
2026-07-28
JD.com Open-Sources Real-Time Video AI Model — Deployable on a Single RTX 4090
2026-08-12
MSI loosens restrictions on CXMT memory, AMD motherboards are no longer capped at DDR5-6800

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.

💬 Comments (0)

No comments yet. Be the first!

Login to comment