{"uid":"cap_R8yfSCQLymKeGib6B666x","slug":"blockrun-us-stock-ohlc-history-amd-0ba4201e","name":"Blockrun US Stock OHLC History – AMD","description":"US Stock OHLC bars for AMD @ D","url":"https://blockrun-web-vbsbhh7lea-uc.a.run.app/api/v1/stocks/us/history/AMD","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_0P_g-svxqQduhQmxrTdYJ","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 bar data (open, high, low, close, volume) for AMD stock at configurable resolutions over a specified time window","exampleAgentPrompt":"Pull daily OHLC bars for AMD from January 1, 2025 to June 1, 2025 — I need the open, high, low, close, and volume for each day.","exampleUseCases":[{"title":"Backtest AMD trading strategy","prompt":"Get me AMD's daily OHLC bars for all of 2024 — I want to run a moving average crossover backtest and need the open, high, low, close, and volume for every trading day."},{"title":"Chart AMD price last month","prompt":"Fetch AMD's candlestick data at daily resolution for the past 30 days so I can build a price chart showing how the stock moved this month."},{"title":"Analyze AMD intraday volatility","prompt":"Pull AMD's 1-minute OHLC bars from last Tuesday — I want to see the intraday highs and lows to figure out when the stock was most volatile during market hours."}],"resultDescription":"An array of OHLC bar objects, each containing bar start timestamp (Unix seconds), open, high, low, close prices, and volume for AMD, along with the symbol, resolution, and source (Pyth) metadata for the requested window.","failureModes":["Invalid or unknown ticker symbol returns an error","Unix timestamps out of supported historical range may return empty bars array","Missing required 'from' or 'to' query parameters causes a 400 error","Invalid resolution enum value causes a 400 error","Payment not provided or insufficient USDC causes a 402 Payment Required response","Pyth data source unavailable may cause 503 or empty response"],"whenToPreferThis":"Choose this endpoint when you need structured OHLC candlestick bar data for AMD (or other US-listed equities via the same service) over a custom time window, especially for charting, backtesting, or technical analysis. It supports multiple resolutions from 1-minute to monthly and is priced at $0.001 per call, making it cost-effective for historical data pulls. Prefer this over real-time endpoints when you need multi-day or multi-month historical ranges rather than a single current price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T19:27:03.978Z","isFirstParty":false}