15 Years of Daily History

Historical Stock Data API

15 years of daily end-of-day OHLCV history across U.S.-listed stocks — enough depth to backtest through multiple market cycles, not just the last 12 months.

Why history depth matters

A strategy that only sees a bull-market slice of data will look great and fail live. 15 years of daily bars reaches back through multiple drawdowns and recoveries, enough for walk-forward validation, regime-conditional backtests, and multi-year seasonality studies — not just a curve-fit to the last few quarters.

What's in the dataset

  • Daily bars: open, high, low, close, volume
  • Broad coverage of U.S.-listed stock symbols
  • ~15 years of trailing history per symbol
  • Caller-selected date range — pull exactly the window you need, nothing more

Pulling a full history for backtesting

curl -H "X-Api-Key: YOUR_API_KEY" \
  "https://www.stashgamma.com/api/dataapi/v1/eod/QQQ?from=2011-01-01&to=2026-08-01"

Omit from/to and you get the trailing 30 days instead — useful for a quick sanity check before pulling the full history for a backtest run.

Typical uses

Strategy backtesting

Walk-forward test entries/exits across multiple regimes instead of one lucky window.

Seasonality research

Day-of-week, month-of-year, and multi-year cyclical patterns need years of bars, not weeks.

New to the API? Start with the quickstart guide to get a key and make your first request, or see the OHLCV data reference for the exact field shapes.

Ready to backtest against real history?

Free forever, no credit card — get a key and pull 15 years of bars today.

Get Started Free