API Documentation
REST API for US Stock Market, ETFs, options, insider trades, sentiment, and more. Historical data 2000–Present.
Authentication
Include your API key in the x-api-key header for all requests.
x-api-key: YOUR_API_KEYStock Endpoints
/api/stocks/prices?symbols=AAPL,TSLA,NVDAcache: 60sBatch stock prices — get real-time prices for up to 50 symbols in a single request. Cached 60s.
/api/stocks/:symbol/pricecache: 60sSingle stock price — current price, change, changePercent, timestamp.
/api/stocks/:symbol/history?startDate=2024-01-01&endDate=2024-03-01&interval=1dcache: 60sHistorical OHLCV data — daily, weekly, or monthly bars.
/api/stocks/:symbol/candles?interval=5mOHLC candle data — intraday or daily candles.
/api/stocks/:symbol/profilecache: 60sCompany profile — sector, industry, market cap, exchange.
/api/stocks/:symbol/dividendsDividend history — ex-date, amount, payment date.
/api/stocks/:symbol/earningsEarnings data — report date, EPS, revenue, consensus.
Market Endpoints
/api/market/statuscache: 60sUS market status — OPEN/CLOSED, next open time, next close time.
/api/market/top-gainerscache: 60sTop gaining stocks for the day.
/api/market/top-loserscache: 60sTop losing stocks for the day.
/api/market/most-activecache: 60sMost traded stocks by volume.
ETF Endpoints
/api/etf/listcache: 60sPopular ETFs — SPY, QQQ, VTI, DIA, ARKK with current prices.
/api/etf/:symbolcache: 60sSingle ETF details — symbol, name, price, metadata.
Options Endpoints
/api/options/:symbol?expirationDate=2024-03-15&limit=50cache: 60sOptions chain — calls and puts with strike, bid, ask, volume, open interest.
Insider Trades
/api/insiders/:symbol?limit=50Insider trading — name, title, transaction type, shares, price, date.
Sentiment
/api/sentiment/:symbolcache: 60sStock sentiment score (-1 to +1) — BULLISH, NEUTRAL, BEARISH, mentions count.
Dark Pool
/api/darkpool/:symbol?limit=50Dark pool trading — price, volume, trade time for off-exchange activity.
Economic Indicators
/api/economy/indicatorscache: 5 minEconomic indicators — inflation, interest rate, GDP growth, unemployment.
Search
/api/search?q=appleSearch stocks — symbol and name search.
Stock Screener
/api/screener?sector=Technology&marketCapMin=1000000000&limit=50Stock screener — filter by sector, market cap, price, volume.
Technical Indicators
/api/indicators/:symbol?rsiPeriod=14&smaPeriod=20Technical indicators — RSI, SMA, EMA, MACD, Bollinger Bands.
AI Stock Score
/api/ai/stock-score/:symbolcache: 60sAI stock score (0–100) — trend, momentum, volume, volatility.
Developer
/api/developer/usageUsage stats — plan, requests today, remaining, daily limit.
WebSocket (Real-Time)
Real-time stock price streaming. Subscribe to symbols and receive price updates every 5 seconds.
Subscribe:
{"action":"subscribe","symbols":["AAPL","TSLA"]}