Stock Price History
Stock Data
Stock Price History
Get historical stock price data and trading volume
GET
Stock Price History
Overview
Retrieve comprehensive historical stock price data including open, high, low, close prices, and trading volume. This endpoint provides daily time series data essential for technical analysis, backtesting strategies, and understanding price trends.Historical price data is fundamental for technical analysis, pattern recognition, and quantitative trading strategies. The data includes adjusted prices for dividends and stock splits.
Parameters
Stock ticker symbol (e.g., AAPL, MSFT, GOOGL, TSLA)
Data range: “compact” (latest 100 data points) or “full” (up to 20 years)
Start date in YYYY-MM-DD format (optional, for custom date range)
End date in YYYY-MM-DD format (optional, for custom date range)
Response
The stock ticker symbol
Array of historical price data (most recent first)
Data range returned
Data source identifier (“YFinance” or “FMP”)
ISO timestamp of the response
Examples
Response Example
Understanding Historical Data
Price Data Types
Price Data Types
OHLC Data Explained:
- Open: First traded price of the day
- High: Highest price during trading session
- Low: Lowest price during trading session
- Close: Last traded price of the day
- Adjusted Close: Price adjusted for dividends and stock splits
Volume Analysis
Volume Analysis
Volume Metrics:
- Volume: Number of shares traded
- VWAP: Volume Weighted Average Price
- Volume Patterns: High volume often confirms price movements
- Relative Volume: Compare to average daily volume
Data Adjustments
Data Adjustments
Corporate Actions:
- Stock Splits: Prices adjusted to maintain continuity
- Dividends: Ex-dividend adjustments in historical prices
- Spin-offs: Complex adjustments for corporate restructuring
- Rights Issues: Adjustments for new share issuances
Use Cases
Technical Analysis
Chart Patterns
- Support/resistance levels
- Moving averages
- Trend analysis
- Pattern recognition
Backtesting
Strategy Testing
- Historical performance
- Risk metrics calculation
- Strategy optimization
- Performance attribution
Risk Management
Volatility Analysis
- Historical volatility
- Value at Risk (VaR)
- Drawdown analysis
- Correlation studies
Quantitative Analysis
Statistical Models
- Return distributions
- Momentum indicators
- Mean reversion tests
- Factor analysis
Technical Indicators
Common Calculations:
- Simple Moving Average: Average price over N periods
- Volatility: Standard deviation of returns
- RSI: Relative Strength Index for momentum
- Bollinger Bands: Price bands based on standard deviation
Error Responses
Invalid Symbol (404)
Invalid Symbol (404)
Invalid Date Range (400)
Invalid Date Range (400)
No Data Available (404)
No Data Available (404)
MCP Protocol Usage
For AI agents using the Model Context Protocol:Related Endpoints
Stock Quote
Get current real-time stock price
Technical Indicators
Get calculated technical indicators
Moving Averages
Get moving average calculations
Company Overview
Get fundamental company data