Get Historical Rate
AI-generatedSummary
Fetches a currency’s BNR reference rate for a requested date, using the nearest prior banking day when no rate was published on that date.
Inputs
- Currency (required) — ISO 4217 currency code, such as EUR, USD, or GBP. The operation trims whitespace and converts it to uppercase.
- Date (required) — Requested date in YYYY-MM-DD format. The operation selects the rate for that date or the nearest prior date with a rate. It checks the BNR yearly XML file for the year in the requested date.
Output shape
One item per input item, each containing a single JSON object with the historical rate result.
Success objects include operation, currency, base (RON), requestedDate, matched date, exactDate (whether the requested date matched), rate, and fetchedAt. Invalid date formats, missing rates, and fetch errors fail the operation unless Continue On Fail is enabled; then that input item returns an error object.