{"uid":"cap_EsER59j7Zq03MPTvoI5Xz","slug":"x402stock-xyz-abb597dd","name":"x402stock.xyz Previous Close OHLCV","description":"Open, high, low, close, volume, and VWAP for a ticker's most recent completed trading day. One call returns one bar, handy for prior-close reference without setting a date range. 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/prev-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","properties":{}}},"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":{"anyOf":[{"type":"object","required":["open","high","low","close","volume","vwap","trade_count","timestamp"],"properties":{"low":{"type":"number"},"high":{"type":"number"},"open":{"type":"number"},"vwap":{"anyOf":[{"type":"number"},{"type":"null"}]},"close":{"type":"number"},"volume":{"type":"number"},"timestamp":{"anyOf":[{"type":"string"},{"type":"null"}]},"trade_count":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"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":{}}},"response":{"data":{"low":309.53,"high":315,"open":311.775,"vwap":311.9766,"close":312.06,"volume":70026752,"timestamp":"2026-05-29T20:00:00.000Z","trade_count":764555},"as_of":"2026-05-29T20:00:00.000Z","source":"massive","ticker":"AAPL"}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":4,"varies":false,"failureChargeRate":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_9Z3VdxxAdcsQUCN5sIZDv","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 previous trading day's OHLCV bar (open, high, low, close, volume, VWAP, trade count, timestamp) for a single US stock ticker symbol.","exampleAgentPrompt":"What were Apple's previous-day OHLCV numbers — open, high, low, close, volume, and VWAP — for AAPL?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the ticker symbol, source ('massive'), as_of date string, and a data object containing: open, high, low, close (all numbers), volume (number), vwap (number or null), trade_count (number or null), and timestamp (string or null) for the previous trading session. Returns null for data if no data is available.","failureModes":["Invalid or unknown ticker symbol returns null data field","Non-trading day or weekend may return null or stale data","Payment failure (402) if USDC balance insufficient","Rate limiting or network timeout on x402 payment protocol","Ticker for non-US or delisted security may return null data"],"whenToPreferThis":"Use this endpoint when you need the most recent completed trading day's OHLCV bar for a single specific US equity ticker and want a simple per-call micropayment model. Prefer this over bulk daily snapshots when you only need one symbol, or over real-time endpoints when historical end-of-day data suffices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-09-02T02:04:07.872Z","lastSuccessfullyRanAt":"2026-09-02T02:04:07.872Z","lastHealthCheckAt":"2026-09-15T06:42:44.969Z","isFirstParty":false}