Get Latest Stock Price
Get the most recent stock price data for any publicly traded company. This endpoint returns a single record for the latest available trading day, including the open, high, low, close, adjusted close, volume, VWAP, and daily change.
Use this endpoint when you need the current price for a single stock without fetching a full historical series. It is ideal for portfolio dashboards, watchlist displays, or any context where you only need today's data.
GET
https://api.roic.ai/v2/stock-prices/latest/{identifier}Parameters
Path Parameters
identifierstringrequiredCompany identifier — supports ticker symbol (e.g., `AAPL`), CIK, CUSIP, or ISIN.
Example:
AAPLQuery Parameters
apikeystringrequiredYour API key for authentication.
formatstringoptionalResponse format. Use `json` for JSON (default) or `excel` for tab-separated values compatible with Google Sheets and Excel.
Default:
jsonValues: json, excelCode Examples
curl "https://api.roic.ai/v2/stock-prices/latest/AAPL?apikey=YOUR_API_KEY"Response
Response200 OK
{
"date": "2024-12-20",
"open": 254.77,
"high": 255.27,
"low": 248.68,
"close": 249.79,
"adj_close": 249.45,
"volume": 57620328,
"change": -4.98,
"change_percent": -1.954,
"vwap": 251.22
}Use Cases
- Portfolio dashboards. Display the current price and daily change for each holding in a portfolio tracker
- Watchlist alerts. Poll the latest price to trigger notifications when a stock crosses a target price
- Pricing widgets. Embed a stock price widget on company pages, financial blogs, or research platforms
- Spreadsheet models. Use
format=excelwith Google SheetsIMPORTDATA()to pull the latest quote into a live financial model - Market scanners. Fetch the latest price for a batch of tickers to screen for daily movers, volume spikes, or gap openings
- Quick lookups. Build a simple API integration that returns the current price for any ticker on demand
Related Endpoints
- Historical Stock Prices - Get daily price data for any date range with OHLCV, volume, and VWAP
- Company Profile - Get company details including sector, industry, market cap, and description
- Financial Ratios - Access profitability, liquidity, and valuation ratios alongside current price data