{"uid":"cap_a5LnDA-5IC0fwHKhdMYVg","slug":"fx-convert-ecb-reference-rates-060dc7bc","name":"FX Convert (ECB Reference Rates)","description":"Convert between 30+ currencies at the European Central Bank's daily reference rate, for today or any past date. Returns the converted amount, the per-unit rate and the date the rate is actually from — the ECB publishes on business days only, so a weekend date answers with the previous business day and says so instead of pretending. Reference rates for accounting and reporting, not tradable quotes.","url":"https://402.com.tr/api/x402/fx-convert","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"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"Target currency (or several, comma-separated)"},"date":{"type":"string","description":"Date (optional, YYYY-MM-DD)"},"from":{"type":"string","description":"Source currency"},"amount":{"type":"string","description":"Amount (optional, default 1)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uM8nROloj8REt3J3x5I_O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between 30+ currencies using the European Central Bank's daily reference rate for today or any historical date, returning the converted amount, per-unit rate, and actual rate date.","exampleAgentPrompt":"Convert 1500 USD to EUR and GBP using the ECB reference rate for 2024-03-15 — I need the converted amounts and the actual rate date used.","exampleUseCases":[{"title":"Historical FX rate for accounting","prompt":"What was the official ECB exchange rate for converting 10,000 USD to EUR on 2023-12-31? I need the exact rate and converted amount for our year-end financial statements."},{"title":"Multi-currency invoice conversion","prompt":"Convert 2500 GBP to both EUR and JPY at today's ECB reference rate — I need all three results including the per-unit rates for an international invoice."},{"title":"Weekend date FX lookup","prompt":"What's the ECB reference rate for converting CHF to USD for Saturday 2024-06-08? I know the ECB might use the previous business day's rate, just tell me which date it actually used."}],"resultDescription":"Returns the converted amount, the per-unit exchange rate, and the actual date the rate is from (which may differ from the requested date if it fell on a weekend or holiday, with the discrepancy clearly noted). Supports converting to multiple target currencies in a single call.","failureModes":["Invalid or unsupported currency code returns an error indicating the currency is not available","Date before ECB data history returns an error for out-of-range date","Malformed date format (not YYYY-MM-DD) causes a validation error","ECB data unavailable for a very recent date may fall back to last available rate","Network or upstream ECB data source timeout"],"whenToPreferThis":"Choose this endpoint when you need official ECB reference rates for accounting, auditing, financial reporting, or compliance purposes — not for live trading quotes. Ideal when you need historical rates on a specific past date, transparency about which business day's rate was actually used, or conversion to multiple currencies simultaneously. Prefer over general FX APIs when ECB provenance and auditability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:48:04.711Z","isFirstParty":false}