{"uid":"cap_EF6bSfCBt2xnaJ5vFiZ9j","slug":"x402-finance-hub-forex-rate-lookup-d0824a77","name":"x402 Finance Hub – Forex Rate Lookup","description":"Forex, stocks, crypto, and trading data from Alpha Vantage, Twelve Data, TradingView, and Forex Factory. Pay with USDC on Base.","url":"https://x402-trading-hub.vercel.app/api/forex/rate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["to","from"],"properties":{"to":{"type":"string","description":"Target currency (e.g. USD)"},"from":{"type":"string","description":"Source currency (e.g. EUR)"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","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.08/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_K0-cs8xCik1ZpN_a5IotJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current exchange rate between two currencies, paid via USDC on Base using the x402 payment protocol","exampleAgentPrompt":"What's the current exchange rate from EUR to USD? Pay for it using USDC on Base.","exampleUseCases":[{"title":"Real-time forex rate for travel planning","prompt":"I'm flying to Japan next week and need to know how much my USD will be worth in JPY right now. Can you check the live exchange rate and pay for it with my USDC on Base?"},{"title":"Cross-currency conversion for international payments","prompt":"We need to send a payment to our UK supplier in GBP, but we only have CAD. What's the current exchange rate between Canadian dollars and British pounds? Use USDC on Base to fetch it."},{"title":"Multi-currency portfolio rebalancing check","prompt":"Help me figure out if I should rebalance my portfolio. Can you pull the real-time exchange rates for CHF to USD and AUD to EUR? Pay with USDC on Base for both lookups."}],"resultDescription":"Returns a data object containing the current exchange rate between the specified source and target currency pair, sourced from providers such as Alpha Vantage or Twelve Data.","failureModes":["Missing required 'from' or 'to' fields returns a validation error","Unsupported or invalid currency codes may return an error or empty data","Payment failure (insufficient USDC balance or x402 protocol error) blocks the request","Upstream provider (Alpha Vantage, Twelve Data) outage causes unavailable data","Rate limiting from upstream providers may delay or fail response"],"whenToPreferThis":"Use this endpoint when you need a real-time forex exchange rate between two currency pairs and can pay per-call in USDC on Base via the x402 protocol. Prefer this over free rate APIs when freshness, reliability across multiple data providers, and programmatic micropayment access matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:43:57.103Z","isFirstParty":false,"canonicalSlug":"x402-finance-hub-forex-rate-lookup-d0824a77"}