# stock-sdk

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

Canonical page: https://www.reposhelf.co.uk/projects/github/chengzuopeng/stock-sdk.html

- Project ID: chengzuopeng/stock-sdk
- Source: GitHub
- Original project: https://github.com/chengzuopeng/stock-sdk
- Description attribution: project author metadata
- Categories: Finance, MCP servers &amp; agents
- Technologies: Node.js, Vue
- Licence: ISC
- Repository availability checked: 2026-11-23T15:27:38.537Z
- Demo page loaded: 2026-11-23T16:13:14.583Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 无需 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 迁移指南（破坏性变更，无兼容别名）。

- 股票行情工具大多是 Python 生态，前端难以直接使用
- 想做行情看板 / Demo，不想额外维护后端服务
- 财经接口返回格式混乱、编码复杂（GBK / 并发 / 批量）

## Author-documented requirements and 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.

Source: https://github.com/chengzuopeng/stock-sdk/blob/master/README.md

Extraction checked: 2026-10-15T17:01:14.316Z

Last recorded source update: 2026-11-21T03:01:52.000Z

Saved release: v2.4.6 — 2026-10-03T04:03:47.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=chengzuopeng%2Fstock-sdk). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
