{"uid":"cap_A062wZNaywd45gW6MjJEP","slug":"market-data-previous-close-ohlc-x402atlas-f133ec15","name":"Market Data Previous Close (OHLC) — x402atlas","description":"Previous trading day OHLC bar for stocks, crypto, forex and options — yesterday's open/high/low/close and volume by ticker.","url":"https://marketdata.use.x402atlas.com/prev-close","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"},"queryParams":{"type":"object","required":["ticker"],"properties":{"ticker":{"type":"string","description":"Asset-prefixed ticker, e.g. AAPL, X:BTCUSD, C:EURUSD"},"adjusted":{"type":"boolean","default":true,"description":"Adjust for splits"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","ticker","adjusted","candle"],"properties":{"candle":{"type":"object","required":["time","open","high","low","close","volume","vwap","transactions"],"properties":{"low":{"type":"number"},"high":{"type":"number"},"open":{"type":"number"},"time":{"type":"string","format":"date-time","description":"Bar start timestamp."},"vwap":{"type":"number","description":"Volume-weighted average price."},"close":{"type":"number"},"volume":{"type":"number"},"transactions":{"type":"integer","description":"Number of upstream transactions in the bar."}},"description":"Previous trading day's OHLCV bar."},"ticker":{"type":"string","description":"Echo of the requested ticker."},"adjusted":{"type":"boolean","description":"Whether the price is split-adjusted."},"queried_at":{"type":"string","format":"date-time","description":"UTC timestamp when this bridge queried the upstream."}}}}}}},"responseSchema":{"type":"json","example":{"candle":{"low":209.5,"high":212.4,"open":210.1,"time":"2026-07-02T00:00:00Z","vwap":211.2,"close":211.8,"volume":51000000,"transactions":480000},"ticker":"AAPL","adjusted":true,"queried_at":"2026-07-06T12:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nlZofW8o96OTtqMENbyNI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","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 OHLC bar (open, high, low, close, volume) for stocks, crypto, forex, or options by ticker symbol.","exampleAgentPrompt":"What was AAPL's open, high, low, close, and volume from the previous trading day? Pull the previous-close OHLC bar for the stock ticker AAPL.","exampleUseCases":null,"resultDescription":"A single OHLC record for the prior trading day containing the open, high, low, and close prices plus volume, date, and the vwap for the requested ticker. Crypto uses the X: prefix (e.g. X:BTCUSD), forex uses C: (e.g. C:EURUSD), stocks use bare tickers.","failureModes":["Invalid or unknown ticker returns a 404 or empty result","Market holidays or weekends may shift the 'previous day' back further than expected","Crypto tickers missing the X: prefix may return no results","Network or payment errors (402 payment required if USDC payment fails)","Malformed ticker prefix returns an error response"],"whenToPreferThis":"Use this endpoint when you need a quick, single-record summary of where an asset ended the most recent trading session — ideal for daily portfolio snapshots, morning briefings, overnight move detection, or seeding technical indicators. Prefer this over full historical bar endpoints when you only need the last completed session, not a time series.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:46:19.722Z","isFirstParty":false}