Six providers, one interface
Yahoo Finance (free), Alpha Vantage, Polygon.io, Finnhub, Twelve Data, and Tiingo. All return the same Quote, HistoricalBar, and CompanyProfile shapes regardless of which provider answers.
One TypeScript client for Yahoo Finance, Alpha Vantage, Polygon.io, Finnhub, Twelve Data, and Tiingo β with caching, fallback, streaming, and React hooks built in.
npm install market-feedimport { MarketFeed } from "market-feed";
const feed = new MarketFeed(); // zero-config β Yahoo Finance, no API key needed
const quote = await feed.quote("AAPL");
console.log(`${quote.symbol}: $${quote.price.toFixed(2)}`);
// AAPL: $189.84That's it. No API keys, no boilerplate.
| Import | Description |
|---|---|
market-feed | Core client + all six providers |
market-feed/calendar | Offline exchange calendar for 8 markets + crypto |
market-feed/stream | Market-hours-aware HTTP polling async generator |
market-feed/ws | WebSocket streaming from Polygon / Finnhub |
market-feed/consensus | Parallel multi-provider weighted price consensus |
market-feed/indicators | SMA, EMA, RSI, MACD, Bollinger Bands, ATR, VWAP, Stochastic |
market-feed/portfolio | Live P&L and unrealised gains tracking |
market-feed/backtest | Pure-function backtesting engine |
market-feed/alerts | Price / volume alert async generator |
market-feed/fundamentals | Income statements, balance sheets, cash flows |
market-feed/screener | Filter symbols by price, volume, market cap, and more |
market-feed/options | Options chains with Greeks from Polygon.io |
market-feed/macro | FRED macroeconomic indicators (CPI, GDP, Fed Fundsβ¦) |
market-feed/react | useQuote, useStream, useAlerts, useWebSocket, useOrderBook hooks (React β₯ 18 + React Native) |
market-feed/browser | CORS proxy utilities for browser-side use |
market-feed/trpc | tRPC router + fetch-compatible HTTP handler |
market-feed/cache | Persistent cache drivers: Redis, Upstash, SQLite |