Available with: All-In-One and Fundamentals Data Feed packages.
Consumption: API call consumption varies by entity.
GBOND consumes 1 API call, while MONEY consumes 10 API calls.

The Macroeconomic Data API is a part of Fundamental API.

Register & Get Data

Government Bonds

We provide more than 100 Government Bonds for more than 15 countries with different periods all over the world. The full list of available government bonds is available via ‘Exchange Symbols API‘, please use the ‘GBOND’ exchange code to get it.

Supported periods: 1 month, 3 months, 6 months, 1 year, 3 years, 5 years, 10 years.

Supported countries: USA, UK, France, Italy, Russia, China, India, Spain, Japan, Germany, Brazil, Canada, and others.

The government bonds data is daily and available for the past 5+ years. To get the data for the United Kingdom 10 Years government bond use the following API:

URL
cURL
PHP
Python
R
https://eodhd.com/api/eod/UK10Y.GBOND?api_token={YOUR_API_TOKEN}&fmt=json
curl --location "https://eodhd.com/api/eod/UK10Y.GBOND?api_token={YOUR_API_TOKEN}&fmt=json"
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://eodhd.com/api/eod/UK10Y.GBOND?api_token={YOUR_API_TOKEN}&fmt=json',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
));

$data = curl_exec($curl);
curl_close($curl);

try {
    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
    var_dump($data);
} catch (Exception $e) {
    echo 'Error. '.$e->getMessage();
}
import requests

url = f'https://eodhd.com/api/eod/UK10Y.GBOND?api_token={YOUR_API_TOKEN}&fmt=json'
data = requests.get(url).json()

print(data)
library(httr)
library(jsonlite)

url <- 'https://eodhd.com/api/eod/UK10Y.GBOND?api_token={YOUR_API_TOKEN}&fmt=json'
response <- GET(url)

if (http_type(response) == "application/json") {
    content <- content(response, "text", encoding = "UTF-8")
    cat(content)
} else {
    cat("Error while receiving data\n")
}

Check our End of Day API for more options for Government Bonds end of day data.

LIBOR and EURIBOR

EURIBOR futures are available under FEI.MONEY ticker code. Also for EURIBOR, we have 1 week, 1 month, 3 months, 6 months, and 12 months rates. To get, for example, a 3-month rate for EURIBOR, use the following ticker: EURIBOR3M.MONEY, the full URL will be:

URL
cURL
PHP
Python
R
https://eodhd.com/api/eod/EURIBOR3M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json
curl --location "https://eodhd.com/api/eod/EURIBOR3M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json"
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://eodhd.com/api/eod/EURIBOR3M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
));

$data = curl_exec($curl);
curl_close($curl);

try {
    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
    var_dump($data);
} catch (Exception $e) {
    echo 'Error. '.$e->getMessage();
}
import requests

url = f'https://eodhd.com/api/eod/EURIBOR3M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
data = requests.get(url).json()

print(data)
library(httr)
library(jsonlite)

url <- 'https://eodhd.com/api/eod/EURIBOR3M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
response <- GET(url)

if (http_type(response) == "application/json") {
    content <- content(response, "text", encoding = "UTF-8")
    cat(content)
} else {
    cat("Error while receiving data\n")
}

For LIBOR we have 1 week, 1 month, 2 months, 3 months, 6 months, and 12 months rates nominated in four different currencies: USD, EUR, GBP, and JPY. To get, for example, a 2-month rate for LIBOR nominated in EURO, use the following ticker: LIBOREUR2M.MONEY, the full URL will be:

URL
cURL
PHP
Python
R
https://eodhd.com/api/eod/LIBOREUR2M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json
curl --location "https://eodhd.com/api/eod/LIBOREUR2M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json"
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://eodhd.com/api/eod/LIBOREUR2M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
));

$data = curl_exec($curl);
curl_close($curl);

try {
    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
    var_dump($data);
} catch (Exception $e) {
    echo 'Error. '.$e->getMessage();
}
import requests

url = f'https://eodhd.com/api/eod/LIBOREUR2M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
data = requests.get(url).json()

print(data)
library(httr)
library(jsonlite)

url <- 'https://eodhd.com/api/eod/LIBOREUR2M.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
response <- GET(url)

if (http_type(response) == "application/json") {
    content <- content(response, "text", encoding = "UTF-8")
    cat(content)
} else {
    cat("Error while receiving data\n")
}

The full list of available rates is available via ‘Exchange Symbols API‘, please use the ‘MONEY’ exchange code to get it.

ECB Exchange Rates

Euro foreign exchange reference rates from ECB (European Central Bank). The reference rates are usually updated around 16:00 CET every working day by ECB. We update rates at 17:00 CET every working day. The foreign exchange rates are based on a regular daily procedure between central banks across Europe, which normally takes place at 14:15 CET.

The list of supported currencies you can get with Exchange API and virtual exchange code ‘MONEY’. All currencies are quoted against the euro (base currency). Then for USD, the code will be ECBEURUSD.MONEY, the full URL will be:

URL
cURL
PHP
Python
R
https://eodhd.com/api/eod/ECBEURUSD.MONEY?api_token={YOUR_API_TOKEN}&fmt=json
curl --location "https://eodhd.com/api/eod/ECBEURUSD.MONEY?api_token={YOUR_API_TOKEN}&fmt=json"
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://eodhd.com/api/eod/ECBEURUSD.MONEY?api_token={YOUR_API_TOKEN}&fmt=json',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
));

$data = curl_exec($curl);
curl_close($curl);

try {
    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
    var_dump($data);
} catch (Exception $e) {
    echo 'Error. '.$e->getMessage();
}
import requests

url = f'https://eodhd.com/api/eod/ECBEURUSD.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
data = requests.get(url).json()

print(data)
library(httr)
library(jsonlite)

url <- 'https://eodhd.com/api/eod/ECBEURUSD.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
response <- GET(url)

if (http_type(response) == "application/json") {
    content <- content(response, "text", encoding = "UTF-8")
    cat(content)
} else {
    cat("Error while receiving data\n")
}

Norge Bank Exchange Rates (NOK)

Norges Bank lists some 40 exchange rates. The publication time of daily exchange rates is approximately 16:00 CET. If you are looking for exchange rates that are not listed on our website, we suggest that you consult other Internet sites.

Norges Bank’s exchange rates are middle rates, i.e. the mid-point between buying and selling rates in the interbank market at a given time. The exchange rates are only intended to serve as an indication and are not binding on Norges Bank or other banks.

The list of supported currencies you can get with Exchange API and virtual exchange code ‘MONEY’. All currencies are quoted against the NOK (quote currency). Then for USD, the code will be NORGEUSDNOK.MONEY, the full URL will be:

URL
cURL
PHP
Python
R
https://eodhd.com/api/eod/NORGEUSDNOK.MONEY?api_token={YOUR_API_TOKEN}&fmt=json
curl --location "https://eodhd.com/api/eod/NORGEUSDNOK.MONEY?api_token={YOUR_API_TOKEN}&fmt=json"
$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://eodhd.com/api/eod/NORGEUSDNOK.MONEY?api_token={YOUR_API_TOKEN}&fmt=json',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
));

$data = curl_exec($curl);
curl_close($curl);

try {
    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);
    var_dump($data);
} catch (Exception $e) {
    echo 'Error. '.$e->getMessage();
}
import requests

url = f'https://eodhd.com/api/eod/NORGEUSDNOK.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
data = requests.get(url).json()

print(data)
library(httr)
library(jsonlite)

url <- 'https://eodhd.com/api/eod/NORGEUSDNOK.MONEY?api_token={YOUR_API_TOKEN}&fmt=json'
response <- GET(url)

if (http_type(response) == "application/json") {
    content <- content(response, "text", encoding = "UTF-8")
    cat(content)
} else {
    cat("Error while receiving data\n")
}

CDS

Coming Soon!

If you miss any economic data in our API, please do not hesitate to contact us via support@eodhistoricaldata.com

Register & Get Data