{"uid":"cap_9LaMF6TB86uR-A6ndfZg2","slug":"x402stock-xyz-73743788","name":"x402stock.xyz Open/Close OHLCV","description":"Official open, close, high, low, volume, plus pre-market and after-hours prices for a ticker on a given date. Pass `?date=YYYY-MM-DD` (required). From x402stock, a pay-per-call market & economic data API for AI agents. No API key or account; pay in USDC via x402.","url":"https://x402stock.xyz/api/v1/open-close/AAPL","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["date","adjusted"],"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"adjusted":{"type":"boolean","default":true}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ticker","data","source","as_of"],"properties":{"data":{"type":"object","required":["date","open","high","low","close","volume","pre_market","after_hours"],"properties":{"low":{"type":"number"},"date":{"type":"string"},"high":{"type":"number"},"open":{"type":"number"},"close":{"type":"number"},"volume":{"type":"number"},"pre_market":{"anyOf":[{"type":"number"},{"type":"null"}]},"after_hours":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},"as_of":{"type":"string"},"source":{"type":"string","const":"x402stock"},"ticker":{"type":"string"},"feedback":{"type":"object","required":["endpoint","method","free","note"],"properties":{"free":{"type":"boolean"},"note":{"type":"string"},"method":{"type":"string","const":"POST"},"endpoint":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"date":"2024-11-15","adjusted":true}}},"response":{"data":{"low":224.27,"date":"2024-11-15","high":226.92,"open":226.4,"close":225,"volume":47923696,"pre_market":226.9,"after_hours":225.26},"as_of":"2024-11-15T00:00:00.000Z","source":"massive","ticker":"AAPL"}},"exampleRequest":{"date":"2024-11-15","adjusted":true},"tags":["x402"],"displayCostAmount":"0.01","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":"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_fbCBNEsvhDy2yY5DkSNd9","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 a single trading day's open, high, low, close, volume, pre-market, and after-hours prices for a specific US equity ticker.","exampleAgentPrompt":"What were the open, high, low, close, and volume numbers for AAPL on 2024-11-15, with price adjustment enabled?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing ticker symbol, data source, as-of timestamp, and a data object with date, open, high, low, close, volume, pre-market price (nullable), and after-hours price (nullable) for the requested trading day.","failureModes":["Invalid date format returns an error — must be YYYY-MM-DD","Non-trading day (weekend/holiday) may return empty or error response","Unknown ticker symbol returns 404 or empty data","Payment failure (x402) if USDC balance is insufficient","Rate limiting if too many calls are made in a short window"],"whenToPreferThis":"Use this endpoint when you need precise single-day OHLCV data for a specific US equity ticker, especially when pre-market and after-hours prices are needed alongside standard trading session data. Prefer this over bulk market snapshot endpoints when you only need one ticker for one day.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:48.326Z","isFirstParty":false}