{"uid":"cap_PbKeTH1FCPmZNT7oUujNN","slug":"agents-x402stock-xyz-crypto-spot-pair-previous-day-ohlcv-x402stock-7af8eef2","name":"Crypto Spot Pair Previous Day OHLCV (x402stock)","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","required":["pair"],"properties":{"pair":{"type":"string","description":"Currency or crypto spot pair as BASE-QUOTE, e.g. EUR-USD or BTC-USD."}}},"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":"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":"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_TEvMfXbk4fq-tJCkpiHo_","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 previous UTC calendar day's full OHLCV candle (open, high, low, close, volume, VWAP) for a crypto spot pair, covering 00:00–24:00 UTC.","exampleAgentPrompt":"What was yesterday's full daily OHLCV candle for BTC-USD — open, high, low, close, volume, and VWAP for the UTC day?","exampleUseCases":[{"title":"Daily crypto portfolio valuation","prompt":"What did ETH-USD close at yesterday UTC? I need the close price and volume to update my portfolio records."},{"title":"Crypto trading strategy review","prompt":"Pull yesterday's full daily bar for SOL-USD — open, high, low, close, VWAP, and trade count — so I can review whether my price target was hit."},{"title":"Crypto market recap report","prompt":"Get yesterday's OHLCV candle for BTC-USD and XRP-USD so I can put together a daily market summary."}],"resultDescription":"A JSON object containing the ticker symbol, yesterday's OHLCV data (open, high, low, close, volume, VWAP, trade count, timestamp), the as_of date string, and a source field identifying x402stock. The data field may be null if no data is available for the pair.","failureModes":["Unsupported or misspelled pair returns null data field","Invalid pair format (not BASE-QUOTE) may cause error or null response","Data unavailable for thinly traded or unsupported pairs","Payment failure via x402 if insufficient USDC balance"],"whenToPreferThis":"Use this endpoint when you need exactly yesterday's UTC daily bar (00:00–24:00 UTC) for a crypto spot pair in a single low-cost call ($0.01 USDC). Prefer this over historical bar endpoints when you only need the most recent completed day and don't want to specify date parameters. Ideal for daily portfolio tracking, end-of-day reporting, or feeding yesterday's price into a downstream calculation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T06:30:33.724Z","isFirstParty":false}