{"uid":"cap_pcnhb-3eW3bktlpeT8E6Q","slug":"x402stock-crypto-pair-previous-close-37fecb86","name":"x402stock Crypto Pair Previous Close","description":"Pay-per-call market and economic data API for AI agents: US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities, US and global macro (Fed, CPI, jobs, GDP, Treasury, World Bank), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 on Base.","url":"https://x402stock.xyz/api/v1/crypto/%7Bpair%7D/prev-close","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"low":309.53,"high":315,"open":311.775,"vwap":311.9766,"close":312.06,"volume":70030122,"timestamp":"2026-05-28T04:00:00.000Z","trade_count":764554},"as_of":"2026-05-28T04:00:00.000Z","source":"x402stock","ticker":"AAPL"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_mhfUXdu-cmsQ-jG0f312h","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 trading session's OHLCV data (open, high, low, close, volume, VWAP) for a specified cryptocurrency pair","exampleAgentPrompt":"What was BTC/USD's previous session close price — I need the full OHLCV breakdown including volume and VWAP?","exampleUseCases":null,"resultDescription":"A JSON object containing the previous trading session's OHLCV data for the requested crypto pair: open, high, low, close prices, VWAP, volume, trade count, timestamp, the as-of datetime, the ticker symbol, and source attribution.","failureModes":["Invalid or unsupported trading pair symbol returns an error","Payment not completed via x402/USDC results in 402 Payment Required","Network or upstream data provider outage returns 5xx error","Malformed pair parameter causes 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need the previous full trading session's OHLCV data for a cryptocurrency pair without needing an API key or account — ideal for AI agents making pay-per-call requests in USDC via the x402 protocol on Base. Prefer this over subscription-based market data APIs when you need lightweight, on-demand access without ongoing commitments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:02:16.826Z","isFirstParty":false}