{"uid":"cap_FAjlandAT2PTfVDD2Kw7V","slug":"ecb-currency-rates-converter-ae6de72f","name":"ECB Currency Rates Converter","description":"Convert an amount between two currencies at the European Central Bank daily reference rate, latest or for a past date, returning the rate used, the result, and the rate date.","url":"https://onchaincheck.dev/fx/convert?utm_source=zero.xyz","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"},"queryParams":{"type":"object","required":["from","to","amount"],"properties":{"to":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"ISO 4217 target currency"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Past date YYYY-MM-DD; latest if omitted"},"from":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"ISO 4217 source currency"},"amount":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Amount in the source currency"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"CAD","date":"2026-10-22","from":"USD","rate":1.4034,"amount":250,"result":350.85,"source":"European Central Bank reference rates via frankfurter.dev"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_91TnoTj34gD1UiA88rkQt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an amount between two currencies using the European Central Bank daily reference rate, returning the rate, converted amount, and rate date.","exampleAgentPrompt":"What's 250 US dollars in Canadian dollars at the ECB's official rate? Use today's rate.","exampleUseCases":[{"title":"Invoice reconciliation in foreign currency","prompt":"I need to convert 8500 euros to US dollars using the ECB official rate from 2024-03-15 — what's the result and what rate was used?"},{"title":"Real-time expense reporting tool","prompt":"My employee submitted an expense of 320 GBP — how much is that in EUR at today's ECB reference rate?"},{"title":"Historical FX rate lookup for accounting","prompt":"What was the ECB rate for USD to JPY on 2023-11-01, and how much would 10000 USD have been worth in yen that day?"}],"resultDescription":"A JSON object containing: the source currency (from), target currency (to), the original amount, the ECB reference rate used, the converted result, the date of the rate used, and a source attribution string crediting the European Central Bank via frankfurter.dev.","failureModes":["Invalid ISO 4217 currency code returns an error (e.g. unsupported or misspelled currency)","Date falls on a weekend or ECB holiday when no rate was published — may return nearest available date or an error","Amount is not a valid positive number — schema validation failure","Requested date is in the future — no ECB rate available","ECB data source (frankfurter.dev) is temporarily unavailable — upstream dependency failure"],"whenToPreferThis":"Choose this endpoint when you need an authoritative, neutral official exchange rate from the European Central Bank rather than a commercial bank or broker rate. Ideal for compliance, accounting, invoicing, or regulatory contexts where the ECB daily reference rate is specifically required. Supports historical rate lookups by date, making it suitable for auditing past transactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:42:02.018Z","isFirstParty":false,"canonicalSlug":"ecb-currency-rates-converter-ae6de72f"}