Installation
- npm
- pnpm
- yarn
Runtime Support
| Runtime | Version | Status |
|---|---|---|
| Node.js | 18+ | ✅ Full support |
| Deno | 1.28+ | ✅ Full support |
| Bun | 1.0+ | ✅ Full support |
| Cloudflare Workers | — | ✅ Full support |
fetch and Web Crypto APIs.
Quick Start
Configuration
Resources
All 12 resource groups available:| Resource | Methods |
|---|---|
client.quotes | get(symbol), batch(symbols) |
client.fundamentals | get(symbol), statements(symbol) |
client.technicals | get(symbol) |
client.news | list(symbol) |
client.options | chain(symbol) |
client.analyst | consensus(symbol), priceTargets(symbol), ratings(symbol) |
client.earnings | history(symbol) |
client.insider | transactions(symbol) |
client.profile | get(symbol) |
client.sentiment | get(symbol) |
client.historical | get(symbol, { period }) |
client.etf | get(symbol) |
Usage Examples
Batch Quotes
Technical Analysis
Analyst Consensus
Error Handling
Vercel AI SDK Integration
Security
- API key is non-enumerable — hidden from
console.logandJSON.stringify - Webhook verification uses constant-time comparison (double-HMAC)
- Replay protection via timestamp tolerance window
GitHub
Source code, issues, and contributions