OHLCV — Open, High, Low, Close, Volume — is the standard shape for a single trading session's price action. StashGamma's free API returns exactly this, one daily bar per row, for U.S.-listed stocks going back 15 years.
$0
No card required
15 yrs
Daily to yearly OHLCV
300/hr
Free-tier rate limit
| Field | Type | Meaning |
|---|---|---|
| date | string | Trading date, YYYY-MM-DD. |
| open | number | First traded price of the session. |
| high | number | Highest traded price of the session. |
| low | number | Lowest traded price of the session. |
| close | number | Last traded price of the session. |
| volume | number | Total shares traded during the session. |
{
"symbol": "QQQ",
"from": "2026-07-01",
"to": "2026-08-01",
"count": 23,
"bars": [
{ "date": "2026-07-01", "open": 611.2, "high": 614.8, "low": 609.5, "close": 613.1, "volume": 28451200 },
{ "date": "2026-07-02", "open": 613.4, "high": 615.0, "low": 611.9, "close": 614.2, "volume": 24310500 }
]
}Bars are objects, not parallel arrays — index straight into bar.close without tracking a separate column-order map.
Open/high/low/close map directly onto a candle; volume drives the bar underneath.
Moving averages, RSI, and most technical indicators are computed directly from the close (or high/low/close) series.
Yes — the free tier requires no credit card and isn't a trial. It's rate-limited (300 requests/hour, 800/day, 4,000/week per key) but usable indefinitely.
Daily by default (one row per trading session). Add interval=weekly, monthly, quarterly or yearly and the endpoint rolls the daily bars inside your date range into one candle per period: open of the first day, close of the last, running high/low, summed volume, plus start/end/days fields. Leave from/to out and the window follows the interval (30 days daily, 1 year weekly, 5 years monthly, 15 years quarterly and yearly). There's no intraday interval on the API.
15 years of daily bars (or the equivalent weekly, monthly, quarterly and yearly candles) for any U.S.-listed stock symbol, subject to how long that symbol has actually traded.
The API itself returns JSON (see the response shape below) — each bar is a plain object, not a parallel array, so it maps directly onto a CSV row or a DataFrame if you need one.
It's a REST API, so yes, some code (or a notebook) is expected — see the quickstart guide below for copy-paste examples in Python, Node, and other languages.
Ready to pull real bars? Start with the quickstart guide, or see the full API reference for auth, rate limits, and error codes.
Free forever, no credit card — get a key and start today.
Get Started FreeFree Stock Data API
Start here — the free tier, no card required, 300 requests/hour.
EOD Data API Quickstart Guide
Get a key and pull your first end-of-day bars in under 5 minutes.
Historical Stock Data API
15 years of daily-to-yearly OHLCV across U.S.-listed tickers, for backtesting & research.
Free Stock Market APIs Compared
How the free tier stacks up against Alpha Vantage, IEX, and others.
MCP Server for Stock Data
Connect Claude, OpenAI, ChatGPT, or another MCP-capable agent directly to the data.
Options Analyzer MCP (no key)
Let Claude, OpenAI, or any MCP agent analyze a QQQ options trade — no API key needed.
Portfolio Tracker via MCP & CSV
Add positions from Claude or ChatGPT, or upload a CSV / Excel file — a private per-account portfolio.
AI Stock Scanner MCP
Let Claude or another MCP client write and run stock scans over end-of-day data.
Claude & ChatGPT Setup Guide
Click-by-click connector setup for Claude and ChatGPT, with your own key filled in.
Full API Documentation
Auth, endpoint reference, rate-limit headers, and error codes.
Ready to try it? Get your free API key — no card required.