Stock Quote API
Get current stock quotes and historical OHLCV price data. Includes computed change, 52-week range, and volume metrics.
GET
/api/stock/quote
3 sats
Current stock quote with price, change, change percent, 52-week high/low, volume, and market cap.
| Parameter | Type | Description |
|---|---|---|
symbol | string | Stock ticker symbol (e.g., AAPL, MSFT, TSLA) |
curl "https://agent-commerce.store/api/stock/quote?symbol=AAPL"
GET
/api/stock/history
3 sats
Historical OHLCV (Open/High/Low/Close/Volume) price data for a given time range.
| Parameter | Type | Description |
|---|---|---|
symbol | string | Stock ticker symbol |
range | string | Time range: 1d, 5d, 1mo, 3mo, 6mo, 1y, 5y (default: 1mo) |
curl "https://agent-commerce.store/api/stock/history?symbol=TSLA&range=3mo"
Usage tips: Ticker symbols are US stock exchanges (NYSE, NASDAQ). Data is delayed ~15 minutes during market hours. The range parameter automatically selects appropriate intervals (1d=5min, 5d=15min, 1mo+=1day). Pre-/post-market prices are not included.
Value-Add
- Flattens deeply nested upstream response into clean, flat JSON
- Computes change and change percentage from raw price data
- 52-week high/low and market cap in a single call
- Symbol validation before upstream calls
- Automatic interval selection based on time range
Upstream Source
Yahoo Finance chart API (unofficial, publicly accessible). Data delayed ~15 minutes.