{"uid":"cap_4l6r5CrcAsSXzIJOmtBCb","slug":"blockrun-us-stock-historical-ohlcv-6899f0cd","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/stocks/us/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":"unknown","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_8hcG0Bro7qWBBf2BIwkcZ","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 (open/high/low/close/volume) bar data for a US-listed stock ticker over a specified time window and resolution, paid per call in USDC via x402.","exampleAgentPrompt":"Pull daily OHLCV bars for AAPL from January 1, 2024 to December 31, 2024 — I need the open, high, low, close, and volume for each trading day.","exampleUseCases":null,"resultDescription":"An array of OHLCV bar objects, each containing bar start timestamp (Unix seconds), open, high, low, close prices, and volume, along with the symbol, resolution, and the data source identifier (Pyth). Bars are returned for the requested time window at the specified resolution (1/5/15/60/240 min, daily, weekly, or monthly).","failureModes":["Invalid or unrecognized ticker symbol returns an error","Missing required 'from' or 'to' query parameters returns a 400-level error","Date range too large for the selected resolution may return incomplete data","Payment failure or insufficient USDC balance blocks the request via x402","Invalid resolution enum value returns a validation error","Pre/post market session data may be sparse or unavailable for some symbols"],"whenToPreferThis":"Choose this endpoint when you need historical OHLCV candlestick data for US-listed equities (NYSE, Nasdaq, AMEX) without managing API keys — payment is per-call in USDC via x402. Prefer this over subscription-based data providers when you want pay-as-you-go pricing with crypto settlement. Ideal for agents needing backtesting data, charting, or time-series analysis sourced from Pyth.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:53:37.358Z","isFirstParty":false}