Stock Price API
The ROIC.ai Stock Price API provides historical daily price data and latest quotes for over 60,000 publicly traded companies. Every response includes open, high, low, close, adjusted close, volume, VWAP, and daily change metrics.
Use these endpoints to power charting applications, backtest trading strategies, build portfolio trackers, or feed price data into financial models and spreadsheets.
Available Endpoints
| Endpoint | Description |
|---|---|
| Historical Stock Prices | Get daily OHLCV price data with date range filtering, custom limits, and sort order |
| Latest Stock Price | Get the most recent trading day's price data for any company |
Common Use Cases
- Stock charting. Build interactive price charts with OHLCV candlestick data and volume bars
- Backtesting. Download historical price series to test trading strategies against real market data
- Portfolio tracking. Fetch latest prices for a list of holdings to calculate portfolio value and daily P&L
- Spreadsheet models. Import price data directly into Google Sheets or Excel using the TSV format option
- Event studies. Analyze stock price behavior around earnings dates, product launches, or macro events
- Technical analysis. Use daily price and volume data to compute moving averages, RSI, Bollinger Bands, and other indicators
Response Format
All stock price endpoints return the following fields for each trading day:
| Field | Description |
|---|---|
date | Trading date (YYYY-MM-DD) |
open | Opening price |
high | Highest price during the day |
low | Lowest price during the day |
close | Closing price |
adj_close | Split and dividend adjusted closing price |
volume | Number of shares traded |
vwap | Volume-weighted average price |
change | Dollar change from previous close |
change_percent | Percentage change from previous close |
Authentication
All stock price endpoints require an API key. Apple (AAPL) data is available on the free tier. Access to other companies requires a premium subscription.
See the Authentication page for details on passing your API key.
Next Steps
- Get historical stock prices with date range filtering
- Fetch the latest quote for any ticker
- Use
format=excelto import prices directly into Google Sheets or Excel