chengzuopeng/stock-sdk
为前端设计的无需 Python、无需后端服务、零依赖的获取股票数据 JavaScript SDK。 observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 98
- Release rhythm 98
- Longevity 18
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 6.0
- age_days: 264
- days_rel: 14
- days_push: 14
- n_releases_24m: 27
Adoption not part of the score
1899 stars · 181 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A zero-dependency JavaScript/TypeScript SDK for fetching real-time quotes, K-line history, technical indicators, and extended market data for A-share, Hong Kong, US stocks, and funds directly in the browser or Node.js. It also ships a CLI and a built-in MCP server so AI tools can access stock data without Python or a backend service.
Use cases
- get real-time stock quotes in the browser without a backend
- fetch historical daily or minute K-line data for A-share, HK, and US stocks
- compute technical indicators like MACD, RSI, and KDJ on stock data
- build a stock market dashboard or data visualization demo
- prototype quantitative trading strategies in JavaScript
- query stock prices from the command line
- connect an AI agent to stock market data via MCP
- screen stocks and run local backtests
When to choose
- you are a frontend or Node.js developer who wants stock data without Python or a backend
- you need a zero-dependency, lightweight SDK that works in both browser and Node.js
- you want built-in technical indicators, signals, screening, and backtesting in one package
- you want to expose stock data to AI tools through an MCP server
When to avoid
- you need guaranteed SLA-backed official exchange data feeds
- you rely on intraday fund NAV estimates, which were removed after the upstream source shut down
- you need markets beyond A-share, Hong Kong, US stocks, funds, futures, and options
- you require a Python ecosystem like akshare or tushare
Facets
library · maturity active
sdk http-client cli mcp data-science charts developer-tools fintech data-science web-development developer-tools apis browser cli cross-platform stock-market stock-data a-share hong-kong-stocks us-stocks kline technical-indicators zero-dependency typescript quantitative-finance funds screener backtesting ai-ready cryptocurrency trading nodejs web-server
5 sources
- readme: https://github.com/chengzuopeng/stock-sdk · fetched 2026-08-28 · 3ae200df2ee0
- homepage: https://stock-sdk.linkdiary.cn/ · fetched 2026-08-29 · 9a77f0105c22
- site_page: https://stock-sdk.linkdiary.cn/guide/getting-started · fetched 2026-08-29 · 9b8327b31e47
- registry_npm: https://registry.npmjs.org/stock-sdk · fetched 2026-08-29 · 9557db66ce26
- site_page: https://stock-sdk.linkdiary.cn/changelog · fetched 2026-08-29 · 36509b6b5a42
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| chengzuopeng/stock-sdk | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="chengzuopeng/stock-sdk")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem