{"uid":"cap_NxGyambrf_kZXuMOb3flN","slug":"x402stock-previous-close-bar-9e62a821","name":"x402stock Previous Close 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","$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"},"pathParams":{"type":"object","ticker":{"type":"string"}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false}}},"responseSchema":null,"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_jfo2fJIUQOEddQrLE6ly_","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 OHLCV and VWAP data for a stock ticker's most recent completed trading day as a single price bar.","exampleAgentPrompt":"What was the open, high, low, close, volume, and VWAP for AAPL on its most recent completed trading day?","exampleUseCases":[{"title":"Morning portfolio reference check","prompt":"Before the market opens, pull yesterday's closing price and volume for TSLA so I can compare it to today's premarket action."},{"title":"Stock screener enrichment","prompt":"I'm building a watchlist — grab the previous close bar including VWAP for NVDA so I can check where it settled relative to its intraday average."},{"title":"ETF prior-session snapshot","prompt":"What were the open, high, low, and closing prices for SPY last trading day? I also want the volume and VWAP."}],"resultDescription":"A single OHLCV+VWAP price bar for the requested ticker covering its most recently completed trading session, including open, high, low, close prices, total volume traded, and volume-weighted average price (VWAP), along with the date of the session.","failureModes":["Invalid or unrecognized ticker symbol returns an error or empty result","Non-trading days (weekends, holidays) may affect which session is returned as 'most recent'","Payment failure via x402/USDC will block the response","Delisted or OTC tickers may not be supported","Rate limits or upstream data provider outages could cause temporary failures"],"whenToPreferThis":"Use this endpoint when you need a quick prior-close reference for a single ticker without specifying a date range. It is ideal for agents that need end-of-day context (close price, VWAP, volume) as a baseline before market open or for portfolio snapshots. Prefer it over range-based endpoints when only the last completed bar matters and you want minimal payload and cost ($0.01 USDC per call). No API key setup required — payment is handled seamlessly via x402 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:02:16.032Z","isFirstParty":false}