From 744d5cfaa2970a1c6fafe8630c19e16adacc00dd Mon Sep 17 00:00:00 2001 From: Ionut Cioflan Date: Thu, 11 Sep 2025 10:09:53 +0300 Subject: [PATCH] feat: update BNR endpoints to official curs.bnr.ro subdomain per BNR docs Update BNR API endpoints to official documented URLs - Change URL from www.bnr.ro to curs.bnr.ro subdomain - Update both current and historical rate endpoints - Follows official BNR documentation: https://www.bnr.ro/en/24006-exchange-rate-list-in-xml-format --- src/Service/NationalBankOfRomania.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/NationalBankOfRomania.php b/src/Service/NationalBankOfRomania.php index 26a4cc9..4674dba 100755 --- a/src/Service/NationalBankOfRomania.php +++ b/src/Service/NationalBankOfRomania.php @@ -32,9 +32,9 @@ final class NationalBankOfRomania extends HttpService { use SupportsHistoricalQueries; - protected const URL = 'https://www.bnr.ro/nbrfxrates.xml'; + protected const URL = 'https://curs.bnr.ro/nbrfxrates.xml'; - protected const HISTORICAL_URL_TEMPLATE = 'https://www.bnr.ro/files/xml/years/nbrfxrates{year}.xml'; + protected const HISTORICAL_URL_TEMPLATE = 'https://curs.bnr.ro/files/xml/years/nbrfxrates{year}.xml'; private const SUPPORTED_CURRENCIES = [ 'AED',