Curs valutar BNR
BNR exchange-rate history for one currency
GRATUIT fără cheie necesară
MCP: get_fx_rate_history
GET https://api.datero.ro/v1/fx-rates/history
Daily BNR fixing series (business days only) for one currency against RON. Maximum range: 366 days per request — paginate by year for longer histories. Defaults: to=today, from=to−30 days. Free of charge.
Parametri
| Nume | În | Descriere |
|---|---|---|
currency
obligatoriu
| query | ISO 4217 currency code, e.g. "EUR". |
from | query | Range start, YYYY-MM-DD. |
to | query | Range end, YYYY-MM-DD. |
Exemple de răspuns
Istoricul EUR pe un interval
Doar zile bancare — weekendul lipsește din serie.
curl "https://api.datero.ro/v1/fx-rates/history?currency=EUR&from=2026-06-01&to=2026-06-05" {
"currency": "EUR",
"target": "RON",
"source": "BNR",
"from": "2026-06-01",
"to": "2026-06-05",
"items": [
{
"date": "2026-06-02",
"rate": 5.2556
},
{
"date": "2026-06-03",
"rate": 5.2592
},
{
"date": "2026-06-04",
"rate": 5.2581
},
{
"date": "2026-06-05",
"rate": 5.2488
}
]
} Același endpoint, prin MCP
Agenții AI pot apela această operație ca tool-ul get_fx_rate_history
pe serverul MCP Datero — aceeași validare, același cost, același contor de credite.
curl "https://api.datero.ro/v1/fx-rates/history?currency=EUR&from=2026-06-01&to=2026-06-05" Încearcă live
direct din browser