{"uid":"cap_KaRSSJ6QYqrhxG75rFYC8","slug":"blockrun-us-stock-ohlc-history-amzn-02add038","name":"Blockrun US Stock OHLC History - AMZN","description":"US Stock OHLC bars for AMZN @ D","url":"https://blockrun-web-vbsbhh7lea-uc.a.run.app/api/v1/stocks/us/history/AMZN","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_O_9wn-a19TVc-ZpaJFmCD","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 Amazon (AMZN) stock over a specified time window and resolution","exampleAgentPrompt":"Can you pull the daily OHLC bars for AMZN from January 1, 2024 to March 31, 2024 so I can chart Amazon's price history over that quarter?","exampleUseCases":[{"title":"Backtest Amazon trading strategy","prompt":"I want to backtest a moving average crossover strategy on Amazon stock — can you grab the daily OHLC bars for AMZN for all of 2023 so I have a full year of price data to run my analysis on?"},{"title":"Analyze AMZN intraday price swings","prompt":"Can you pull hourly OHLC bars for AMZN over the past two weeks? I want to see how Amazon's stock has been moving throughout the trading day and spot any recurring intraday patterns."},{"title":"Compare Amazon quarterly price trends","prompt":"I'm putting together a report on Amazon's stock performance — can you fetch the weekly OHLC bars for AMZN from Q1 through Q3 of 2024 so I can compare how the price trended across those three quarters?"}],"resultDescription":"An array of OHLC bar objects for AMZN, each containing bar start timestamp (Unix seconds), open, high, low, close prices, and volume — plus metadata fields for symbol, resolution, and data source (Pyth).","failureModes":["Missing required 'from' or 'to' query parameters returns a 400 error","Invalid ticker symbol returns an error or empty bars array","Date range with no trading data (e.g. future dates or pre-listing) returns empty bars","Invalid resolution enum value returns a 400 validation error","Payment not included or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need historical OHLC candlestick data for Amazon (AMZN) stock specifically, with flexible resolution from 1-minute to monthly bars, sourced from Pyth Network. Prefer this over real-time price endpoints when you need a time series for charting, backtesting, or trend analysis 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-14T12:45:47.812Z","isFirstParty":false}