Skip to content

Introduction

Stock SDK is a stock market TypeScript SDK for frontend and Node.js with zero dependencies, a Lightweight distribution, and one unified API surface for multiple market data workflows.

Features

  • Works in both browser and Node.js 18+
  • Ships ESM and CommonJS builds
  • Covers A-share, HK, US, mutual funds, futures, and options
  • Provides real-time quotes, K-line, timeline, sector data, dividend details, and trading calendar
  • Includes MA, MACD, BOLL, KDJ, RSI, WR, BIAS, CCI, ATR, OBV, ROC, DMI, SAR, and KC
  • Supports retry, rateLimit, circuitBreaker, and providerPolicies
  • Full TypeScript types with frontend-friendly APIs

Data Sources

  • Tencent: real-time quotes, code lists, search, trading calendar, fund flow, and intraday timeline
  • Eastmoney: A-share / HK / US historical K-line, minute K-line, sectors, dividend details, futures, and part of the options data
  • Sina: part of the ETF option minute data and supplemental option workflows

Good Fits

  • Frontend quote dashboards and charting
  • Node.js scheduled jobs and trading-day automation
  • Indicator analysis and quant prototypes
  • Futures and options monitoring
  • Dividend event and calendar-based reminders

Next Steps

Released under the ISC License.