Changelog
This page records the version update history of Stock SDK.
1.6.1 (2026-01-25)
New Features
Rate Limiting & Protection
- Added request rate limiter (
rateLimit): Token bucket algorithm with configurable requests per second and burst capacity - Added User-Agent rotation (
rotateUserAgent): Node.js only, reduces risk of being identified as the same client - Added circuit breaker (
circuitBreaker): Automatically pauses requests on consecutive failures to prevent cascade failures (disabled by default, requires explicit configuration)
Infrastructure
- Added general-purpose memory cache module with TTL expiration and LRU eviction
1.6.0 (2026-01-24)
New Features
Dividend Data
- Added A-share dividend details API
getDividendDetail, supporting historical dividend records covering 20+ dimensions including cash dividends, share transfers, financial indicators (EPS, BPS, net profit YoY, etc.), key dates, and distribution progress
1.5.0 (2026-01-18)
New Features
Technical Indicators
- Added 5 new technical indicators: OBV (On Balance Volume), ROC (Rate of Change), DMI/ADX (Directional Movement Index), SAR (Parabolic SAR), KC (Keltner Channel)
- Improved documentation and Playground demos for indicator functions
Batch Query Enhancements
getAShareCodeList,getUSCodeListparameters upgraded to options object for flexible filtering:simple: Remove exchange/market prefixmarket: Filter by market
getAllAShareQuotes,getAllUSShareQuotesnow supportmarketparameter for filtering quotes
1.4.5 (2026-01-15)
Changes
Default Adjustment Type Changed
- Default price adjustment for all K-line APIs changed from backward adjustment (
hfq) to forward adjustment (qfq) - Affected APIs:
getHistoryKline,getHKHistoryKline,getUSHistoryKline,getMinuteKline,getKlineWithIndicators
1.4.4 (2026-01-14)
Improvements
- Code optimizations to reduce bundle size
1.4.3 (2026-01-08)
Improvements
Request Method Optimization
- Support configuration of error retry policies, including retry count, retry interval, etc.
- Optimized error handling to provide more detailed error information.
- Support custom headers and userAgent.
Unit Test Structure Optimization
- Separation of integration/unit tests.
- Added MSW mock layer to intercept real requests for unit testing.
Cache Optimization
- In-memory caching for code lists/trading calendars: Reduces duplicate requests.
1.4.2 (2026-01-07)
New Features
Search Functionality
- Added stock search API
search, supporting search by code, name, and pinyin for A-shares, HK stocks, and US stocks
1.4.1 (2025-12-29)
New Features
Extended Data
- Added A-share trading calendar API
getTradingCalendar
1.4.0 (2025-12-26)
New Features
Board Data
- Added industry board APIs:
getIndustryList,getIndustrySpot,getIndustryConstituents,getIndustryKline,getIndustryMinuteKline - Added concept board APIs:
getConceptList,getConceptSpot,getConceptConstituents,getConceptKline,getConceptMinuteKline
Improvements
Playground
- Added board data API demonstrations
- Playground now supports local development mode, allowing direct reference to local source code for debugging
1.3.1 (2025-12-24)
Improvements
Documentation Improvements
- Official website launched: https://stock-sdk.linkdiary.cn/
- Improved API documentation introduction
- One bigfix
1.3.0 (2025-12-23)
New Features
K-Line Data
- Added HK and US stock history K-line APIs
getHKHistoryKline,getUSHistoryKline(daily/weekly/monthly) - Added APIs to get all US and HK stock real-time quotes
getAllUSShareQuotes,getAllHKShareQuotes(with concurrency control and progress callback)
Technical Indicators
- Added one-stop indicator API
getKlineWithIndicators(auto-fetch K-line and calculate indicators) - Added MA calculation functions
calcMA(supports SMA/EMA/WMA),calcSMA,calcEMA,calcWMA - Added indicator calculation functions
calcMACD,calcBOLL,calcKDJ,calcRSI,calcWR, etc.
Improvements
- Added i18n support for Chinese and English documentation
1.2.0 (2025-12-18)
New Features
K-Line Data
- Added A-Share history K-line API
getHistoryKline(daily/weekly/monthly, data source: East Money) - Added minute K-line API
getMinuteKline(1/5/15/30/60 minutes) - Added today's timeline API
getTodayTimeline
Improvements
- Completely restructured API documentation with clearer table format
1.1.0 (2025-12-12)
Features
Real-time Quotes
- A-Share/Index full quotes
getFullQuotes - A-Share/Index simple quotes
getSimpleQuotes - HK stock quotes
getHKQuotes - US stock quotes
getUSQuotes - Mutual fund quotes
getFundQuotes
Extended Data
- Fund flow
getFundFlow - Large order ratio
getPanelLargeOrder
Batch Query
- All A-Share code list
codeList - Get all A-Share real-time quotes
getAllAShareQuotes(with concurrency control and progress callback) - Batch get quotes by codes
getAllQuotesByCodes - Batch mixed query
batchRaw
Features
- Zero dependencies, lightweight
- Supports both browser and Node.js 18+
- Provides both ESM and CommonJS module formats
- Complete TypeScript type definitions
Version Specification
Stock SDK follows Semantic Versioning.
- Major: incompatible API changes
- Minor: backward-compatible new features
- Patch: backward-compatible bug fixes