{"uid":"cap_zF3HKFBzflM-DF5O0aQRM","slug":"x402stock-ohlc-aggregates-16622dcd","name":"x402stock OHLC Aggregates","description":"US stock prices, snapshots, OHLC bars, fundamentals, corporate actions, technical indicators and news for AI agents. No API keys. No accounts. Pay per request in USDC via x402.","url":"https://x402stock.vercel.app/api/v1/aggregates/%7Bticker%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"bars":[{"low":192.5,"high":196,"open":193,"vwap":194.8,"close":195.12,"volume":50000000,"timestamp":"2026-05-28T04:00:00.000Z","trade_count":450000}],"count":1,"adjusted":true},"as_of":"2026-05-29T20:00:00.000Z","source":"massive","ticker":"AAPL"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9UFfqS70MNyT45rZCJp5r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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, VWAP) for a given US-listed stock ticker, paid per request in USDC via x402.","exampleAgentPrompt":"Can you pull the daily OHLC bars for AAPL over the past 5 trading days, including volume and VWAP?","exampleUseCases":[{"title":"Backtesting a trading strategy","prompt":"Get me the daily OHLC bars for NVDA for the last 30 days, including volume and VWAP — I want to test a moving average crossover strategy."},{"title":"Charting recent price action","prompt":"Can you fetch the last 10 daily candlestick bars for TSLA so I can see how it's been trading this month?"},{"title":"Spot-checking a stock's weekly range","prompt":"What were the highs, lows, opens, and closes for MSFT each day this past week?"}],"resultDescription":"A JSON object containing an array of OHLC bar objects for the requested ticker, each with open, high, low, close, VWAP, volume, trade count, and timestamp fields; plus metadata including bar count, an adjusted flag, the as-of date, and the data source name.","failureModes":["Invalid or unrecognized ticker symbol returns an error or empty bars array","Date range outside available history returns empty results","Payment failure (insufficient USDC balance or x402 protocol error) blocks the request","Network or upstream data provider outage causes timeout or 5xx error","Requesting data for non-trading days (weekends/holidays) may return empty bars"],"whenToPreferThis":"Use this endpoint when you need structured historical OHLC candlestick data for a specific US-listed equity, especially for quantitative analysis, charting, or backtesting. Prefer it over a snapshot endpoint when you need multiple bars over time rather than just the latest price. It is pay-per-call with no account setup required, making it ideal for ad-hoc or agent-driven queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T07:34:50.509Z","isFirstParty":false,"canonicalSlug":"x402stock-ohlc-aggregates-16622dcd"}