{"uid":"cap_j5pmTXYcOEAwnSdXOe0zR","slug":"agents-x402stock-xyz-x402stock-previous-close-ohlcv-bar-fbd437de","name":"x402stock Previous Close OHLCV Bar","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://agents.x402stock.xyz/api/v1/prev-close/{ticker}","method":"GET","headers":{},"bodySchema":{"type":"object","required":["ticker"],"properties":{"ticker":{"type":"string","description":"US-listed ticker symbol (uppercase), e.g. AAPL."}}},"responseSchema":{"type":"object","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},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":3,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2Ogvx6bFm2DsiRrmhkykT","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.x402stock.xyz","brandSlug":"agents-x402stock-xyz-mpp","brandBaseUrl":"https://agents.x402stock.xyz","brandDocsUrl":null,"whatItDoes":"Returns the open, high, low, close, volume, VWAP, and trade count for a US-listed ticker's most recent completed trading day.","exampleAgentPrompt":"What was AAPL's closing price, volume, and VWAP on the most recent completed trading day?","exampleUseCases":[{"title":"Prior-close reference for trading strategy","prompt":"Can you pull yesterday's close price and VWAP for NVDA so I can use it as a reference for today's trading decisions?"},{"title":"End-of-day portfolio snapshot","prompt":"Grab the final close price and volume from the last trading day for SPY, QQQ, and IWM so I can update my portfolio tracker."},{"title":"Earnings day volatility check","prompt":"What were the open, high, low, and close for TSLA on its most recent completed trading day? I want to see how wide the day's range was."}],"resultDescription":"A single JSON object containing the ticker symbol, source identifier, as-of timestamp, and a data object with open, high, low, close, volume, VWAP (nullable), trade count (nullable), and bar timestamp for the most recent completed trading day. Returns null for data if no bar is available.","failureModes":["Unknown or invalid ticker symbol returns null data object","Non-US-listed or delisted ticker may return no data","Payment failure via x402 if insufficient USDC balance","Ticker must be uppercase; lowercase may cause lookup failure","Markets closed or no completed trading day yet returns stale or null data"],"whenToPreferThis":"Use this endpoint when you need a single prior-close reference bar for a US-listed stock or ETF without needing to specify a date range. It is simpler than calling a full historical OHLCV endpoint when you only need the most recent completed session. Ideal for daily portfolio snapshots, prior-close comparisons, or quick reference of a stock's last trading day statistics. Not suitable for intraday data, historical date ranges, or non-US assets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":3,"lastUsedAt":"2026-09-02T04:37:06.610Z","lastSuccessfullyRanAt":"2026-09-02T04:37:06.610Z","lastHealthCheckAt":"2026-09-08T14:56:00.238Z","isFirstParty":false}