{"uid":"cap_Cn1cVmSJjaz2yc8ajAm9t","slug":"massive-x402-api-grouped-daily-aggregates-us-stocks-e769b515","name":"Massive x402 API – Grouped Daily Aggregates (US Stocks)","description":"US stock market data, sold per request over x402. Every path here answers 402 with the payment terms in the PAYMENT-REQUIRED header, and answers with the data once the payment settles. No account, no API key, no subscription.","url":"https://agent.massive.com/v2/aggs/grouped/locale/us/market/stocks/%7Bdate%7D","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["date"],"properties":{"date":{"type":"string","description":"The beginning date for the aggregate window."}}},"queryParams":{"type":"object","properties":{"adjusted":{"type":"boolean","description":"Whether or not the results are adjusted for splits. By default, results are adjusted. Set this to false to get results that are NOT adjusted for splits."},"include_otc":{"type":"boolean","description":"Include OTC securities in the response. Default is false (don't include OTC securities)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"OK","results":[{"T":"KIMpL","c":25.9102,"h":26.25,"l":25.91,"n":74,"o":26.07,"t":1602705600000,"v":4369,"vw":26.0407},{"T":"TANH","c":23.4,"h":24.763,"l":22.65,"n":1096,"o":24.5,"t":1602705600000,"v":25933.6,"vw":23.493},{"T":"VSAT","c":34.24,"h":35.47,"l":34.21,"n":4966,"o":34.9,"t":1602705600000,"v":312583,"vw":34.4736}],"adjusted":true,"queryCount":3,"request_id":{"type":"string","description":"A request id assigned by the server."},"resultsCount":3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EDAMxS827Pw4jzgCs9niJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns grouped daily OHLCV bar data for all US stocks on a given date, purchased per-request via x402 micropayment with no account or API key required.","exampleAgentPrompt":"Pull the grouped daily OHLCV bars for all US stocks on October 14, 2020 — include OTC securities and use split-adjusted prices.","exampleUseCases":[{"title":"End-of-day market snapshot for backtesting","prompt":"Get me the full grouped daily bars for all US stocks on January 15, 2024 — split-adjusted, no OTC — so I can feed them into my backtesting engine."},{"title":"Market-wide close price monitoring","prompt":"Fetch all US equity close prices for March 3, 2023 including OTC securities, so I can check which tickers moved more than 5% that day."},{"title":"No-account stock data for one-off research","prompt":"I need the daily open, high, low, close, and volume for every US stock on November 8, 2022 — I don't want to sign up for a subscription, just pay per request."}],"resultDescription":"A JSON object containing an array of daily aggregate bars for every US stock traded on the requested date. Each bar includes ticker symbol (T), open (o), high (h), low (l), close (c), volume (v), volume-weighted average price (vw), number of transactions (n), and Unix millisecond timestamp (t). Also returns whether results are adjusted, the total results count, and a server-assigned request ID.","failureModes":["402 Payment Required – payment not yet settled or x402 handshake not completed","Invalid date format – date path parameter malformed or not a valid trading day","No data available – market closed on that date (weekend/holiday)","Future date requested – data not yet available","Network timeout during payment settlement"],"whenToPreferThis":"Choose this endpoint when you need daily OHLCV bar data for the entire US equities market in a single call and want to avoid subscription sign-up or API key management. It is ideal for one-off queries, agentic workflows that pay per use via x402 micropayments, and scenarios where cost-per-call ($0.01 USDC) is preferable to a recurring subscription. Prefer alternatives if you need intraday bars, streaming data, or data for markets outside the US.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:54:37.712Z","isFirstParty":false}