Zero Dependencies
Pure TypeScript implementation with zero runtime dependencies and a lightweight distribution for browser and Node.js
Zero dependencies, Lightweight distribution, and a single API for quotes, K-line, indicators, futures, options, and AI / MCP workflows
import { StockSDK } from 'stock-sdk';
const sdk = new StockSDK();
const quotes = await sdk.getSimpleQuotes(['sh000001', 'sz000858', 'sh600519']);
quotes.forEach((item) => {
console.log(`${item.name}: ${item.price} (${item.changePercent}%)`);
});const sdk = new StockSDK({
timeout: 8000,
providerPolicies: {
eastmoney: {
timeout: 12000,
rateLimit: {
requestsPerSecond: 3,
maxBurst: 3,
},
},
tencent: {
rateLimit: {
requestsPerSecond: 8,
maxBurst: 16,
},
},
},
});