{"uid":"cap_N6ZUmvV0tu0KeXCyS3h8S","slug":"agent402-tools-stock-history-ohlcv-bars-21013773","name":"agent402.tools Stock History OHLCV Bars","description":"Daily OHLCV bars for a US equity: the last `days` sessions, 1 to 250, default 30. Daily only, no intraday. Built from the official consolidated end-of-day summary across all US exchanges and ATSs, so price, range and volume are market totals. If that dataset is unavailable for a read, the answer comes from a consolidation of three U.S. exchange venues instead and says so: coverage reads three-venue, venueVolume counts those venues only and volume is null.","url":"https://agent402.tools/api/stock-history?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","required":["symbol"],"properties":{"days":{"type":"integer"},"points":{"type":"integer"},"symbol":{"type":"string"},"indicators":{}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"note":"full example in /openapi.json","truncated":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"0.5000","medianCents":"0.5000","p90Cents":"0.5000","minCents":"0.5000","maxCents":"0.5000","p95Cents":"0.5000","sampleCount":2,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0qKNlwWp2BtpnXeR1NEnR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical OHLCV (open, high, low, close, volume) price bars for a stock ticker at configurable intervals and date ranges, ready for charting or backtesting.","exampleAgentPrompt":"Pull the daily OHLCV bars for NVDA over the past 6 months so I can chart them and run a backtest.","exampleUseCases":null,"resultDescription":"A flat array of bar objects each containing time, open, high, low, close, and volume fields for the requested symbol, interval, and range — suitable for direct use in charting libraries or quantitative backtests.","failureModes":["Invalid or unknown ticker symbol returns an error or empty array","Intraday intervals (1m–60m) requested for ranges beyond ~60 days return truncated or no data due to Yahoo Finance limits","Missing required 'symbol' query parameter returns a validation error","Unsupported interval or range value returns a 400 bad request","Network or upstream Yahoo Finance outage may cause 5xx errors"],"whenToPreferThis":"Use this endpoint when you need structured OHLCV candlestick data for US stocks, ETFs, or indices at a specific granularity (from 1-minute to monthly) and a defined historical window. Prefer this over a live quote endpoint when you need multiple historical data points for charting, backtesting, or technical analysis. Note that intraday data is capped at ~60 days by the upstream provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-10-09T00:41:14.526Z","lastSuccessfullyRanAt":"2026-10-09T00:41:14.526Z","lastHealthCheckAt":"2026-10-29T18:22:13.268Z","isFirstParty":false,"canonicalSlug":"agent402-tools-stock-history-ohlcv-bars-21013773"}