BundesbankBaseRates
in package
Read onlyYes
FinalYes
Fetches the base rate according to section 247 BGB from the statistics API of the Deutsche Bundesbank (time series BBIN1.M.DE.BBK.BBKBAS2.EUR.ME, formerly SU0115). The series has a value per month; the rate changes on 1 January and 1 July, so the values of January and July are the table entries. A new rate appears once the Bundesbank has published the value of that month.
Table of Contents
Constants
- URL : string = 'https://api.statistiken.bundesbank.de/rest/dat...
Methods
- __construct() : mixed
- fetch() : array<string, string>
- parse() : array<string, string>
- Reads the January and July values of the CSV download ("2026-07;1,52;…").
Constants
URL
public
string
URL
= 'https://api.statistiken.bundesbank.de/rest/data/BBIN1/M.DE.BBK.BBKBAS2.EUR.ME?format=csv&lang=de&startPeriod=%s'
Methods
__construct()
public
__construct([callable(string $url, int $timeout): string|null $http = null ][, int $timeout = 15 ]) : mixed
Parameters
- $http : callable(string $url, int $timeout): string|null = null
-
returns the response body, throws on failure
- $timeout : int = 15
fetch()
public
fetch([string $since = '2002-01' ]) : array<string, string>
Parameters
- $since : string = '2002-01'
-
first month (YYYY-MM)
Return values
array<string, string> —ISO date => rate in percent, e.g. ['2026-07-01' => '1.52']
parse()
Reads the January and July values of the CSV download ("2026-07;1,52;…").
public
static parse(string $csv) : array<string, string>
Parameters
- $csv : string