{"uid":"cap_-CfHI69309CPZDKZcSVT3","slug":"stock-ohlcv-history-549e3714","name":"Stock OHLCV History","description":"Historical OHLCV/candlestick bars for any US stock ticker over any date range — 1-minute intraday up to monthly at precise multipliers (1/2/5/15/30/60/90-minute, 1-hour, 1/5-day, 1-week, 1/3-month), from real Yahoo Finance data. Supports backtesting, charting, and multi-timeframe analysis. $0.01/call.","url":"https://x402-stock-indicators.vercel.app/history/:ticker","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["ticker"],"properties":{"ticker":{"type":"string","description":"Stock ticker symbol, e.g. AAPL, TSLA, MSFT"}}},"queryParams":{"type":"object","required":["multiplier","timespan","from","to"],"properties":{"to":{"type":"string","format":"date","description":"End date, e.g. 2026-07-01"},"from":{"type":"string","format":"date","description":"Start date, e.g. 2026-01-01"},"timespan":{"enum":["minute","hour","day","week","month"],"type":"string"},"multiplier":{"type":"integer","description":"Bar size multiplier. Supported per timespan: minute(1,2,5,15,30,60,90), hour(1), day(1,5), week(1), month(1,3)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mbRxRbiSCbFf_pfNZICXR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical OHLCV candlestick bar data for any US stock ticker at configurable resolutions from 1-minute intraday to monthly, over a specified date range.","exampleAgentPrompt":"Pull the daily OHLCV candlestick bars for TSLA from 2024-01-01 to 2024-12-31 — I need it for a backtest.","exampleUseCases":[{"title":"Intraday chart for day trading","prompt":"Grab me 5-minute candlestick bars for NVDA from the past two weeks — I want to look at intraday price action for a day trading setup."},{"title":"Backtest moving average strategy","prompt":"Pull weekly OHLCV data for SPY going back five years so I can backtest a moving average crossover strategy on it."},{"title":"Visualize recent price trend","prompt":"Get me daily open, high, low, close, and volume bars for AAPL over the last six months — I want to chart the price trend and spot any major moves."}],"resultDescription":"A time series of OHLCV (open, high, low, close, volume) candlestick bars for the requested ticker and date range at the specified bar resolution, sourced from Yahoo Finance data.","failureModes":["Invalid or unsupported ticker symbol returns an error or empty result","Unsupported multiplier/timespan combination returns an error (e.g. 2-hour bars are not supported)","Date range too large for the requested resolution may return truncated or error response","Future dates or invalid date formats return an error","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Use this endpoint when you need historical OHLCV price bars for a US-listed equity at any resolution from 1-minute intraday to monthly, especially for backtesting trading strategies, rendering price charts, or performing technical trend analysis. Prefer this over general market data APIs when you need flexible bar sizes (e.g. 5-minute, 15-minute, 90-minute) and a simple REST call with per-use micropayment pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T04:07:00.895Z","isFirstParty":false}