zhangxiangliang/stock-api
查询 A 股、美股、港股与场内基金行情,并通过 Node.js、浏览器、CLI 或 MCP 快速接入。 observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 99
- Release rhythm 90
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 2234
- days_rel: 70
- days_push: 7
- n_releases_24m: 14
Adoption not part of the score
1831 stars · 208 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A zero-runtime-dependency TypeScript library for querying stock quotes, K-line data, and stock search across A-share, Hong Kong, US markets, and exchange-traded funds. It can be used from Node.js, browsers via CDN, a CLI, or as an MCP server for AI clients, with automatic fallback across Tencent, Sina, and Eastmoney data sources.
Use cases
- fetch current stock quotes for A-share, HK, and US markets
- get historical K-line candlestick data for a stock
- search stocks by name or code
- batch query multiple stock quotes
- expose stock market data to AI assistants via MCP
- query exchange-traded fund prices from the command line
When to choose
- you need a lightweight, zero-dependency stock quote library in TypeScript
- you want unified access to Chinese, Hong Kong, and US market data with automatic source fallback
- you want to give MCP-compatible AI clients stock data tools
- you need both a programmatic API and a CLI for quick lookups
When to avoid
- you need real-time tick-level or streaming market data
- you require trading/order execution, not just quotes
- you need markets outside A-share, Hong Kong, and US exchanges
- you depend on officially licensed market data feeds with SLAs
Facets
library · maturity active
sdk cli mcp http-client fintech apis developer-tools browser cli stock-market-data quotes klines a-share hong-kong-stock us-stock zero-dependency mcp-server nodejs typescript
3 sources
- readme: https://github.com/zhangxiangliang/stock-api · fetched 2026-08-28 · 6a464f9e8f48
- homepage: https://zhangxiangliang.github.io/stock-api/ · fetched 2026-08-29 · 5a2105b57b04
- registry_npm: https://registry.npmjs.org/stock-api · fetched 2026-08-29 · 9ec859b4b99a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| zhangxiangliang/stock-api | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="zhangxiangliang/stock-api")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem