{"uid":"cap_9Gg0Mm8sbmJTm1xoQpfGD","slug":"blockrun-us-stock-historical-ohlcv-0e09dbe4","name":"BlockRun US Stock Historical OHLCV","description":"Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 99 models and 183 data and tool APIs.","url":"https://blockrun.ai/api/v1/usstock/history/AAPL","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"path":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string","example":"AAPL","description":"NYSE/Nasdaq/AMEX ticker (AAPL, TSLA, NVDA, CRCL, SPY, …)."}}},"query":{"type":"object","required":["from","to"],"properties":{"to":{"type":"integer","description":"Window end (Unix seconds)."},"from":{"type":"integer","description":"Window start (Unix seconds)."},"session":{"enum":["pre","post","on"],"type":"string","description":"Optional US market session."},"resolution":{"enum":["1","5","15","60","240","D","W","M"],"type":"string","default":"D","description":"Bar resolution (TradingView convention): 1/5/15/60/240 min, D day, W week, M month."}}}}},"output":{"type":"object","required":["symbol","resolution","bars","source"],"properties":{"to":{"type":"integer"},"bars":{"type":"array","items":{"type":"object","required":["t","o","h","l","c","v"],"properties":{"c":{"type":"number","description":"Close"},"h":{"type":"number","description":"High"},"l":{"type":"number","description":"Low"},"o":{"type":"number","description":"Open"},"t":{"type":"integer","description":"Bar start (Unix seconds)"},"v":{"type":"number","description":"Volume"}}}},"from":{"type":"integer"},"source":{"type":"string","const":"pyth"},"symbol":{"type":"string","example":"AAPL"},"resolution":{"type":"string","example":"D"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9UduUOd7KZw_htQVTxGSQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical OHLCV bar data for a given US stock ticker (NYSE/Nasdaq/AMEX) over a specified time window and bar resolution, sourced from Pyth, paid per-call in USDC.","exampleAgentPrompt":"Pull daily OHLCV bars for AAPL from January 1 2024 to June 30 2024 — I need the open, high, low, close, and volume for each day.","exampleUseCases":null,"resultDescription":"An array of OHLCV bars for the requested ticker and time window, each containing bar-start Unix timestamp, open, high, low, close, and volume values, along with the symbol, resolution, and data source (Pyth).","failureModes":["Invalid or unsupported ticker symbol returns an error or empty bars array","from/to timestamps out of available data range returns empty bars","Malformed Unix timestamp integers cause a 400-level error","Unsupported resolution enum value causes a validation error","Payment failure (insufficient USDC balance) results in 402 Payment Required","Network timeout for Pyth data source may cause delayed or failed response"],"whenToPreferThis":"Choose this endpoint when you need historical OHLCV candlestick data for US-listed stocks (NYSE, Nasdaq, AMEX) and want pay-per-call pricing settled in USDC with no API key setup. Particularly useful for AI agents that need financial time series data on demand without managing subscriptions, and when TradingView-compatible bar resolutions (1/5/15/60/240 min, D, W, M) are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T11:25:07.127Z","isFirstParty":false}