Overview of Stock SDK features
masterStock SDK is a lightweight, zero-dependency library for browser and Node.js 18+ environments. Key features include:
- Namespaced API: Methods are organized by domain (e.g.,
sdk.quotes.cn(),sdk.kline.cn(),sdk.options.etf.dailyKline()). - Dual-runtime Support: Works in both the browser and Node.js using ESM and CJS with subpath imports.
- Unified Data Contract: Uses a consistent
Quotemodel with base fields likesymbol,market,timestamp, andtz. - Indicators & Signals: Includes 14 built-in indicators and a signal layer (e.g., golden/death cross, overbought/oversold) available via subpath imports from
stock-sdk/indicatorsandstock-sdk/signals. - Screener & Backtest: Provides a declarative screener for market-wide data and a local backtest engine.
- CLI & MCP: Includes a CLI for terminal-based quote fetching and a built-in MCP (Model Context Protocol) server for AI tools, designed to not increase the main package size.