BNR annual average
annual_averageComputes BNR's annual average exchange rate for a currency and year for ANAF D212 foreign-income conversion from twelve monthly averages, marking incomplete years with complete: false.
Instructions
BNR's annual average rate for a year, as ANAF converts foreign income in the D212 ("cursul de schimb mediu anual comunicat de BNR"): the mean of the twelve monthly averages, each the mean of the month's daily rates, to four places, with the monthly values and their day counts. Not the mean of the daily rates, which differs. A year not over yet answers the months so far with complete: false.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "<currency>",
"year": "<year>"
},
"name": "annual_average"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | The calendar year, e.g. 2023. | |
| currency | Yes | ISO 4217 code: EUR, USD, GBP, CHF, ... (XAU gold, XDR SDR); case ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | No | ||
| year | Yes | ||
| method | Yes | ||
| months | Yes | ||
| source | Yes | ||
| average | Yes | BNR's exact text, RON per `multiplier` units | |
| warning | No | ||
| complete | Yes | ||
| currency | Yes | ||
| multiplier | Yes |