Zero Dependencies
Pure TypeScript, no third-party dependencies, < 20KB minified
Zero-dependency, lightweight SDK for browser and Node.js to get real-time quotes and K-line data for A-Share / HK / US stocks and funds
import { StockSDK } from 'stock-sdk';
const sdk = new StockSDK();
// Get A-Share real-time quotes
const quotes = await sdk.getSimpleQuotes(['sh000001', 'sz000858', 'sh600519']);
quotes.forEach(q => {
console.log(`${q.name}: ${q.price} (${q.changePercent}%)`);
});If you're a frontend engineer, you may have encountered these problems:
Stock SDK's goal is simple:
Let frontend engineers elegantly get stock quote data using familiar JavaScript / TypeScript.