{"slug":"agent-utils-threads-cron-workers-dev-v1-fx-ecb-4f547d","title":"Use when an agent needs the ECB euro reference rate for a currency pair on a dat","host":"agent-utils.threads-cron.workers.dev","method":"POST","resource":"https://agent-utils.threads-cron.workers.dev/v1/fx/ecb","category":"market","description":"Use when an agent needs the ECB euro reference rate for a currency pair on a date (default latest), optionally converting an amount (max 1e9, 6 decimals). 29 currencies + EUR from 1999-01-04. Inverse/cross rates via EUR are calculated here and rounded (rate 10 significant digits, converted 6 decimal","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":512,"reported_calls_30d":8,"reported_payers_30d":6,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amount":"100","date":"2026-11-05","from":"USD","to":"JPY"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"amount":{"description":"Optional amount to convert from 'from' to 'to': greater than 0, at most 1000000000, at most 6 decimals (a number or a decimal string).","type":["string","number"]},"date":{"description":"Optional YYYY-MM-DD, from 1999-01-04 up to today (UTC). Weekends, TARGET holidays and times before publication use the previous publication day (fallback:true). Omit for the latest.","type":"string"},"from":{"description":"Source currency code (EUR or an ECB-published currency, e.g. USD). See GET / for the list.","maxLength":3,"minLength":3,"type":"string"},"to":{"description":"Target currency code.","maxLength":3,"minLength":3,"type":"string"}},"required":["from","to"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"amount":{"description":"The amount that was converted, if given","type":["number","null"]},"attribution":{"description":"Source credit; the original data is free from the ECB","type":"string"},"converted":{"description":"amount x rate rounded half-up to 6 decimals, if amount was given (an IEEE double; see convertedText for the exact decimal)","type":["number","null"]},"convertedText":{"description":"converted as an exact decimal string with 6 decimals","type":["string","null"]},"date":{"description":"ECB publication date actually used (YYYY-MM-DD)","type":"string"},"fallback":{"description":"true only if the requested date was a weekend, TARGET holiday or not yet published, so the previous publication day was used","type":"boolean"},"from":{"description":"Source currency code (normalized to upper case)","type":"string"},"note":{"description":"Information-only notice and the processing done by this API (inversion, cross rates, rounding)","type":"string"},"rate":{"description":"Units of 'to' per 1 unit of 'from', rounded to 10 significant digits","type":"number"},"requestedDate":{"description":"The date asked for, or null for the latest","type":["string","null"]},"source":{"description":"Data source name","type":"string"},"sourceUrl":{"description":"ECB reference rates page","type":"string"},"to":{"description":"Target currency code","type":"string"}},"required":["from","to","rate","amount","converted","convertedText","date","requestedDate","fallback","source","sourceUrl","attribution","note"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":512,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":555,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":564,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":477,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":465,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":508,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":513,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":479,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":448,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":500,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":362,"error":null}],"description_full":"Use when an agent needs the ECB euro reference rate for a currency pair on a date (default latest), optionally converting an amount (max 1e9, 6 decimals). 29 currencies + EUR from 1999-01-04. Inverse/cross rates via EUR are calculated here and rounded (rate 10 significant digits, converted 6 decimals). Information only; original data free at ecb.europa.eu. No charge: 400, 404 no rate, 405, 429; 502/503 (incl. stale data).","last_updated":"2026-11-24T12:23:06.551Z","schemes":["exact"]}