Skip to content
r.

stock-sdk

chengzuopeng/stock-sdk · Public GitHub repository

为前端设计的无需 Python、无需后端服务、零依赖的获取股票数据 JavaScript SDK。

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

stock-sdk live demo screenshot
Captured from the live demo · 2026-11-23

About this project

Author-written excerpt from the project README.

无需 Python、无需后端服务,直接在 浏览器或 Node.js 中获取 A 股 / 港股 / 美股 / 公募基金 的实时行情与 K 线数据。还自带 命令行工具 与 MCP server,一条命令取行情或接入 AI。

✨ 零依赖、轻量发布包 | 🌐 Browser + Node.js | 📦 ESM + CJS + subpath | 🧠 完整 TypeScript 类型 | 🖥️ CLI | 🤖 MCP

✨ v2.0.0:v2 是一次架构跃迁(命名空间 API、统一符号模型、Quote 可辨识联合、统一错误体系、CLI / MCP / subpath 导出)。 安装:npm i stock-sdk。从 v1 升级请先读 v1 → v2 迁移指南(破坏性变更,无兼容别名)。

Requirements and intended audience

无需 Python、无需后端服务,直接在 浏览器或 Node.js 中获取 A 股 / 港股 / 美股 / 公募基金 的实时行情与 K 线数据。还自带 命令行工具 与 MCP server,一条命令取行情或接入 AI。

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-15. Source: https://github.com/chengzuopeng/stock-sdk/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-11-21. Saved release: v2.4.6 · 2026-10-03. These dates do not guarantee ongoing maintenance.

Technologies
Node.js, Vue
Licence
ISC. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-23. This does not test every feature.

Browse related categories