{"uid":"cap_o2A2SGd_gJyjI9CFI0-6M","slug":"stock-ohlcv-history-4319ba6e","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://www.x402financialdata.com/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_OInA3l7TTIigCYqKvvNMN","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":"Fetches historical OHLCV (open, high, low, close, volume) candlestick bars for any US stock ticker over a custom date range and timeframe multiplier.","exampleAgentPrompt":"Pull 15-minute candlestick bars for NVDA from January 1, 2025 to June 30, 2025 so I can backtest a momentum strategy.","exampleUseCases":[{"title":"Backtesting a swing trading strategy","prompt":"Get daily OHLCV data for TSLA from 2023-01-01 to 2024-12-31 so I can backtest a 20-day moving average crossover strategy."},{"title":"Intraday charting for day traders","prompt":"Fetch 5-minute candles for AAPL for today — from 2025-07-01 to 2025-07-01 — so I can plot an intraday price chart."},{"title":"Long-term trend analysis","prompt":"Pull monthly OHLCV bars for MSFT going back to 2020-01-01 through 2025-06-30 so I can analyze its long-term price trend and drawdowns."}],"resultDescription":"Returns a time series of OHLCV candlestick bars for the requested ticker, timespan, and date range — each bar includes open, high, low, close prices and volume, aligned to the specified multiplier and timespan (e.g. 15-minute, daily, weekly).","failureModes":["Invalid or unknown ticker symbol returns an error or empty dataset","Date range outside available history returns no bars","Unsupported multiplier/timespan combination (e.g. 2-hour) returns an error","Malformed date format (non-ISO 8601) causes a 400-level error","Missing required query parameters (from, to, multiplier, timespan) causes a validation error","Network or upstream Yahoo Finance outage may return a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need precise historical OHLCV/candlestick data for US equities across a wide range of timeframes — especially for backtesting trading strategies, building price charts, or performing multi-timeframe technical analysis. It supports unusually granular multiplier control (e.g. 2-min, 5-min, 90-min, 3-month bars) that most generic market data APIs do not expose. Prefer this over real-time quote endpoints when historical depth matters more than live streaming.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:56:26.933Z","isFirstParty":false}