{"uid":"cap_1IcpRUmah9z_zhlIpuxRe","slug":"massive-x402-api-stock-open-close-2f9ccd89","name":"Massive x402 API – Stock Open/Close","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/v1/open-close/%7BstocksTicker%7D/%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","stocksTicker"],"properties":{"date":{"type":"string","format":"date","description":"The date of the requested open/close in the format YYYY-MM-DD."},"stocksTicker":{"type":"string","description":"Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc."}}},"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."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"low":322.3,"from":"2023-01-09","high":326.2,"open":324.66,"close":325.12,"status":"OK","symbol":"AAPL","volume":26122646,"preMarket":324.5,"afterHours":322.1}},"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_elKI7b2X5F_7QNo5aE-XJ","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 the open, close, pre-market, and after-hours prices for a given US stock ticker on a specific date, paid per request via x402 micropayment.","exampleAgentPrompt":"What were the open, close, pre-market, and after-hours prices for AAPL on January 9, 2023?","exampleUseCases":[{"title":"Backtest entry price for a trade","prompt":"What did TSLA open and close at on March 15, 2024? I want to check the exact prices for a trade I placed that day."},{"title":"Earnings day price movement check","prompt":"What were the open and close prices for NVDA on May 22, 2024 — I want to see how much it moved on earnings day, including after-hours."},{"title":"Split-adjusted vs raw price comparison","prompt":"Give me the unadjusted open and close prices for GOOGL on June 6, 2022, the day before their 20-for-1 split."}],"resultDescription":"Returns a JSON object containing the stock symbol, date, open price, close price, high, low, volume, pre-market price, and after-hours price for the requested ticker and date. Also includes a status field ('OK' on success).","failureModes":["Invalid or unsupported ticker symbol returns an error or empty result","Date outside market trading days (weekends, holidays) may return no data or an error","Malformed date format (not YYYY-MM-DD) causes a validation error","Payment not settled or insufficient USDC balance causes a 402 response with payment terms","Dates too far in the future or before data availability window return no data"],"whenToPreferThis":"Choose this endpoint when you need daily open/close/pre-market/after-hours data for a single US equity ticker on a specific historical date, especially when you want no subscription or API key overhead — just pay $0.01 USDC per call via x402. Prefer it over subscription-based providers for ad-hoc, low-frequency lookups where per-request micropayment is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:55:49.807Z","isFirstParty":false}