{"uid":"cap_-64VvIm5_NkKuMxmVwS5B","slug":"blockrun-us-stock-ohlc-history-4d1849c3","name":"BlockRun US Stock OHLC History","description":"US Stock OHLC bars for AAPL @ D","url":"https://blockrun-web-vbsbhh7lea-uc.a.run.app/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.85","reviews":0,"stars":null,"state":"rated"},"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_Y8ANwMZsMxeJD6nEkU3tl","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 OHLC price bars (open, high, low, close, volume) for a US stock ticker at a specified resolution and time window","exampleAgentPrompt":"Pull daily OHLC bars for AAPL from January 1 2025 to April 30 2025 — I need the open, high, low, close, and volume for each trading day.","exampleUseCases":null,"resultDescription":"An array of OHLC bar objects each containing timestamp (Unix seconds), open, high, low, close, and volume, along with the symbol, resolution, and data source (Pyth). The response covers the requested time window at the chosen bar resolution.","failureModes":["Invalid or unsupported ticker symbol returns an error","from/to timestamps missing or malformed returns 400","Requested time window has no trading data (e.g. weekend-only range at daily resolution) returns empty bars array","Payment of 0.001 USDC not provided results in 402 Payment Required","Resolution enum value not in allowed set returns validation error"],"whenToPreferThis":"Use this endpoint when you need historical candlestick/OHLC bar data for US-listed equities (NYSE, Nasdaq, AMEX) at granularities ranging from 1-minute to monthly, sourced from Pyth. Prefer it for backtesting, charting, or time-series analysis over real-time price endpoints when historical range data is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":80,"lastUsedAt":"2026-06-10T10:11:46.092Z","lastSuccessfullyRanAt":"2026-06-10T10:11:21.282Z","lastHealthCheckAt":"2026-09-15T06:50:46.213Z","isFirstParty":false}