{"uid":"cap_8a6A8vvkTXNmWMUTGz1Zk","slug":"ecb-currency-rates-b1c010bc","name":"ECB Currency Rates","description":"Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.","url":"https://ca-tax-api-mainnet.lxtap.workers.dev/fx/rates?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","properties":{"base":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"ISO 4217 base currency, default USD"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Past date YYYY-MM-DD; latest if omitted"},"symbols":{"type":"string","pattern":"^[A-Za-z]{3}(,[A-Za-z]{3})*$","description":"Comma-separated target currencies; all if omitted"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"base":"USD","date":"2026-10-22","rates":{"CAD":1.4034,"EUR":0.89246,"GBP":0.74761},"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_hoCu9ipXE6xf9jcXnD_dT","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":"Returns European Central Bank daily foreign exchange reference rates for ~30 major currencies, from any base currency, for the latest available date or a specific past date.","exampleAgentPrompt":"What are the ECB official exchange rates for EUR, GBP, and JPY using USD as the base currency as of 2024-03-15?","exampleUseCases":[{"title":"Multi-currency invoice reconciliation","prompt":"I need to reconcile invoices in EUR, GBP, and CHF back to USD — can you pull the official ECB reference rates for those three currencies against USD for April 10, 2024?"},{"title":"Live dashboard FX rate feed","prompt":"Fetch the latest ECB daily reference rates for all currencies with EUR as the base so I can update my finance dashboard."},{"title":"Historical rate audit for tax filing","prompt":"I need the ECB official exchange rate for CAD against EUR on December 31, 2023 for my annual tax filing."}],"resultDescription":"Returns a JSON object containing the effective date of the rates (the ECB business day they were published), the base currency used, and a map of target currency codes to their corresponding exchange rate values relative to the base.","failureModes":["Invalid currency code (not a 3-letter ISO 4217 code) returns an error or empty rates","Date falls on a weekend or ECB non-business day — no rates published, returns error or nearest available","Date too far in the past or in the future — ECB data may not be available","Unrecognized target currency in the symbols list — may be omitted from response","Network or worker outage results in a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need official, authoritative ECB daily reference exchange rates — particularly for regulatory compliance, tax calculations, financial auditing, or any use case requiring a recognized institutional rate source. Prefer it over commercial FX APIs when official ECB rates are specifically required (e.g., EU accounting standards, VAT filings). Rates are updated once per ECB business day, so it is not suitable for real-time intraday trading data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:44:51.957Z","isFirstParty":false,"canonicalSlug":"ecb-currency-rates-b1c010bc"}