# chengzuopeng/stock-sdk

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

Repository: https://github.com/chengzuopeng/stock-sdk
Canonical: https://ross.abutalabs.com/products/stock-sdk
Homepage: https://stock-sdk.linkdiary.cn/
Language: TypeScript
License: ISC
License Family: permissive
Topics: free-stock-market-api, stock-prices, stocks, stocks-api, a-share, ai-agent, akshare, finance, financial-data, fintech, mcp, nodejs, quantitative-finance, sdk, stock, stock-data, stock-market, technical-analysis, trading, typescript
Last push: 2026-08-19T06:46:27+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 98, longevity 18
- inputs: {"age_days": 264, "days_push": 14, "days_rel": 14, "gap_med": 6.0, "n_releases_24m": 27}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1899, forks 181 (observed 2026-08-28T04:05:51.371470+00:00)

## What it is
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
- artifact type: library
- maturity: active
- function: sdk, http-client, cli, mcp, data-science, charts, developer-tools
- domain: fintech, data-science, web-development, developer-tools, apis
- platform: browser, cli, cross-platform
- tags: 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

## Member repositories
- chengzuopeng/stock-sdk (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:51.371470+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:12:10.750998+00:00, confidence not recorded.
  - readme: https://github.com/chengzuopeng/stock-sdk (fetched 2026-08-28T04:05:51.371470+00:00, sha 3ae200df2ee0)
  - homepage: https://stock-sdk.linkdiary.cn/ (fetched 2026-08-29T10:51:45.029082+00:00, sha 9a77f0105c22)
  - site_page: https://stock-sdk.linkdiary.cn/guide/getting-started (fetched 2026-08-29T10:51:45.031895+00:00, sha 9b8327b31e47)
  - registry_npm: https://registry.npmjs.org/stock-sdk (fetched 2026-08-29T10:51:45.037082+00:00, sha 9557db66ce26)
  - site_page: https://stock-sdk.linkdiary.cn/changelog (fetched 2026-08-29T10:51:45.034180+00:00, sha 36509b6b5a42)
- Data as of 2026-08-30T08:39:29.467469+00:00.
