{"uid":"cap_2zTvPgvI347bEY5pW6QvI","slug":"x402stock-crypto-previous-day-ohlcv-512c88d0","name":"x402stock Crypto Previous Day OHLCV","description":"Crypto trades 24/7, so there is no session close: this returns the previous UTC calendar day's full OHLCV candle (00:00–24:00 UTC) for a spot pair — open, high, low, close, volume, and VWAP. Pass the pair in the path as BASE-QUOTE, e.g. BTC-USD. One call returns yesterday's daily bar. From x402stock, a pay-per-call market & economic data API. Pay per request in USDC via x402, no API key.","url":"https://agents.x402stock.xyz/api/v1/crypto/:pair/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","HEAD","DELETE"],"type":"string"},"pathParams":{"pair":{"type":"string"},"type":"object"},"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_uELav-au9BTkyIEoKMUuc","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 UTC calendar day's full OHLCV candle (open, high, low, close, volume, VWAP) for a spot crypto pair, paid per-call via x402/USDC.","exampleAgentPrompt":"What was yesterday's full daily candle for BTC-USD — open, high, low, close, volume, and VWAP?","exampleUseCases":[{"title":"Daily crypto price check","prompt":"What were Bitcoin's open, high, low, and close prices yesterday in USD? I want the full daily candle including volume."},{"title":"Algorithmic backtesting data fetch","prompt":"Pull yesterday's OHLCV daily bar for ETH-USD — I need the open, high, low, close, volume, and VWAP for my trading model."},{"title":"Portfolio performance review","prompt":"What was SOL-USD's previous day close price and total volume? I'm reviewing my portfolio's performance from yesterday."}],"resultDescription":"A single daily OHLCV candle for the requested spot crypto pair covering the previous full UTC calendar day (00:00–24:00 UTC), including open, high, low, close prices, total traded volume, and volume-weighted average price (VWAP).","failureModes":["Invalid pair format (not BASE-QUOTE) returns an error","Unsupported or illiquid pair returns no data or 404","Payment failure via x402 if insufficient USDC balance","Network timeout for slow upstream data providers","Weekend/holiday data may still return (crypto trades 24/7)"],"whenToPreferThis":"Use this endpoint when you need a single, clean previous-day OHLCV daily candle for a spot crypto pair without requiring an API key — ideal for agents that need per-request, pay-as-you-go crypto market data. Prefer this over full historical endpoints when you only need yesterday's bar, and over subscription-based APIs when usage is infrequent or unpredictable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:08:07.042Z","isFirstParty":false}