{"uid":"cap_9aZ9y1tk3bFliBtOmBjOX","slug":"x402stock-forex-pair-previous-close-90ddc488","name":"x402stock Forex 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/forex/%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_YxVVdTGejm9vHM_p9_Lu9","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, trade count) for a given forex currency pair","exampleAgentPrompt":"What did EUR/USD close at in the previous trading session? I want the open, high, low, close, and volume too.","exampleUseCases":null,"resultDescription":"A JSON object containing the previous session's OHLCV data for the requested forex pair: open, high, low, close prices, VWAP, volume, trade count, session timestamp, and as_of datetime, plus the ticker and data source label.","failureModes":["Invalid or unsupported currency pair symbol returns an error","Payment not completed via x402/USDC results in 402 Payment Required","Network or upstream data provider outage causes 5xx error","Requesting data during a weekend or market holiday may return no data or stale data"],"whenToPreferThis":"Use this endpoint when you need a single forex pair's previous-session OHLCV summary and want a pay-per-call model with no API key or subscription required. Ideal for AI agents that need occasional forex reference data without committing to a recurring data feed subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:01:27.395Z","isFirstParty":false}