{"uid":"cap_i33EKVbFZhfBHTzaZGm7x","slug":"blockrun-us-stock-ohlc-history-msft-d78f71ee","name":"BlockRun US Stock OHLC History - MSFT","description":"US Stock OHLC bars for MSFT @ D","url":"https://blockrun-web-vbsbhh7lea-uc.a.run.app/api/v1/stocks/us/history/MSFT","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.002","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.002/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_3_f7sPdpQU8RZ50rwBP3c","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 candlestick bar data for US-listed stocks (e.g. MSFT) over a specified time window and resolution, sourced from Pyth","exampleAgentPrompt":"Can you pull the daily OHLC bars for MSFT from January 1, 2024 to March 31, 2024? I need open, high, low, close, and volume for each day.","exampleUseCases":null,"resultDescription":"An array of OHLC candlestick bars for the requested ticker, each containing timestamp (Unix seconds), open, high, low, close prices, and volume, along with the symbol, resolution, window start/end, and the data source identifier ('pyth').","failureModes":["Invalid or unsupported ticker symbol returns an error","from/to timestamps out of available data range returns empty bars array","Malformed Unix timestamp values cause a 400 bad request","Unsupported resolution enum value causes a validation error","Payment not processed (x402 payment required) returns 402 status","Network timeout or upstream Pyth data unavailability returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need structured OHLC candlestick bar data for US-listed equities (NYSE/Nasdaq/AMEX) over a custom time window with flexible resolution (1-minute to monthly). Ideal for charting, backtesting, or technical analysis workflows. Prefer this over real-time price endpoints when historical context or multiple bars are needed rather than the current spot price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:55:55.524Z","isFirstParty":false}