gitmyhub

global-stock-data

★ 762 updated 1mo ago

美股港股全栈数据工具包 (AI Skill) — 7层架构 · 17端点 · 5数据源 · 零鉴权 | US & HK Stock Full-Stack Data Toolkit for AI Coding Assistants

This is a collection of stock market data tools packaged as a single skill file for AI coding assistants like Claude Code. It provides access to real-time and historical price data, financial statements, technical indicators, and institutional holdings for US and Hong Kong-listed stocks, pulling from five different data sources without requiring any API keys or subscriptions.

The project wraps five external sources (Eastmoney, Sina Finance, Tencent Finance, Yahoo Finance, and the SEC EDGAR system) into 18 ready-to-use functions. Data ranges from real-time quotes (25 to 78 fields per stock depending on the source) to daily, weekly, and monthly price history going back to 1984. Financial statements covering income, balance sheet, and cash flow are available in both Chinese and English formats. Technical indicators such as moving averages, MACD, RSI, KDJ, and Bollinger Bands are calculated in pure Python with no additional library dependencies.

Installing it takes three steps: create a directory in your Claude Code skills folder, download a single SKILL.md file, and run pip install requests. Once loaded, you talk to your AI assistant in natural language, for example asking for a current price and P/E ratio or requesting a fund flow breakdown for a specific ticker, and the assistant runs the appropriate function.

The skill also covers options chains for US stocks, including Greeks and all expiration dates, SEC filing history with structured XBRL financial data containing over 500 GAAP metrics, and a full-market screener that can list all US or HK stocks sorted by price change or volume. Authentication is handled automatically: Yahoo Finance cookies and crumbs are fetched by the code itself, and SEC EDGAR only needs a standard User-Agent header.

The README is primarily in Mandarin Chinese with a full English translation included. The project is released under the Apache 2.0 license and accepts feature requests via GitHub issues.