Market Data API
Get real-time and historical market data including quotes, price history, and detailed chart information with technical indicators.Available Endpoints
Real-Time Quotes
Get current market data for any stock symbol.Combined Quotes
Get quotes for multiple symbols in a single request.Historical Data
Get historical price data with customizable date ranges and intervals.from
: Start date (YYYY-MM-DD)to
: End date (YYYY-MM-DD)interval
: Data interval (1d
,1wk
,1mo
)
Chart Data
Get detailed chart data with technical indicators and customizable timeframes.interval
: Chart interval (1m
,5m
,15m
,30m
,1h
,1d
)range
: Chart range (1d
,5d
,1mo
,3mo
,6mo
,1y
,2y
,5y
)indicators
: Comma-separated technical indicatorsincludePrePost
: Include pre/post market data (true
/false
)
Market Data Types
Quote Data
- Price: Current trading price
- Change: Price change from previous close
- Volume: Number of shares traded
- Market Cap: Total market capitalization
- P/E Ratio: Price-to-earnings ratio
- 52-Week Range: Highest and lowest prices in the past year
Historical Data
- OHLCV: Open, High, Low, Close, Volume data
- Adjusted Close: Price adjusted for splits and dividends
- Multiple Intervals: Daily, weekly, monthly data
- Extended History: Up to 20 years of data
Chart Indicators
- Moving Averages: SMA, EMA, WMA
- Momentum: RSI, MACD, Stochastic
- Volatility: Bollinger Bands, ATR
- Volume: Volume SMA, OBV
Use Cases
Trading Applications
Build trading platforms and portfolio management tools
Market Analysis
Perform technical and fundamental market analysis
Price Alerts
Create price monitoring and alert systems
Backtesting
Test trading strategies with historical data
Real-Time vs Delayed Data
Data Type | Delay | Update Frequency | Use Case |
---|---|---|---|
Real-Time | 0ms | Live | Active trading, alerts |
Near Real-Time | 15min | Continuous | Analysis, monitoring |
End-of-Day | 1 day | Daily | Research, backtesting |
Example Implementation
Data Quality & Coverage
- Exchanges: NYSE, NASDAQ, AMEX, and major international exchanges
- Asset Classes: Stocks, ETFs, indices
- Update Frequency: Real-time during market hours
- Historical Coverage: Up to 20 years of daily data
- Data Sources: Multiple tier-1 market data providers
Market data is subject to exchange fees and licensing agreements. Real-time data requires appropriate subscription levels.
Always implement proper error handling and rate limiting when consuming market data APIs in production applications.