{"uid":"cap_tr8bKdTlkdbJs5Ss0SU7K","slug":"blockrun-us-stock-ohlc-bars-meta-d564c236","name":"Blockrun US Stock OHLC Bars - META","description":"US Stock OHLC bars for META @ D","url":"https://blockrun-web-vbsbhh7lea-uc.a.run.app/api/v1/stocks/us/history/META","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_3But4MZKqTY8QfPJLYGDv","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 (Open, High, Low, Close, Volume) bar data for META (Meta Platforms) stock at configurable resolutions via a pay-per-call x402 API","exampleAgentPrompt":"Can you pull the daily OHLC bars for META from January 1, 2024 to March 31, 2024? I want the open, high, low, close, and volume for each day.","exampleUseCases":[{"title":"Backtest trading strategy on META","prompt":"I'm building a trading bot for META stock. Can you grab me the 5-minute OHLC bars for the last month so I can backtest my moving average crossover strategy?"},{"title":"Analyze META volatility patterns","prompt":"Help me understand META's price movements over the past quarter. Pull the weekly OHLC data from the start of this year through now so I can see the high-low ranges and volume trends."},{"title":"Chart META intraday price action","prompt":"I need to see how META traded today in 15-minute intervals. Can you fetch the intraday bars from market open to close so I can visualize the price action and identify support and resistance levels?"}],"resultDescription":"An array of OHLC bar objects for META stock, each containing bar start timestamp (Unix seconds), open, high, low, close prices, and volume, along with the symbol, resolution, and data source (Pyth). Time window is bounded by from/to Unix timestamps.","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","Missing required query parameters (from, to) result in validation error","Payment failure (x402) blocks access if USDC not provided","Network timeout on the Cloud Run backend"],"whenToPreferThis":"Use this endpoint when you need historical OHLC candlestick data specifically for META (Meta Platforms) stock, sourced from Pyth Network, with flexible resolution (1min to monthly) and optional pre/post market session filtering. Prefer this over realtime price endpoints when you need a time-series of bars for backtesting, charting, or trend analysis over a date range.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:49:03.598Z","isFirstParty":false}