Learn R Programming

eodhd (version 1.0.4)

get_macro_indicators_data: Get macro indicators data

Description

This function retrieves macro indicators data from the API.

Usage

get_macro_indicators_data(api_token, country, indicator = NULL)

Value

A list containing the macro indicators data.

Arguments

api_token

The API token for authentication.

country

Defines the country for which the indicator will be shown. The country should be defined in the Alpha-3 ISO format.

indicator

Defines which macroeconomics data indicator will be shown. All possible indicators will be avaliable on: https://eodhistoricaldata.com/financial-apis/macroeconomics-data-and-macro-indicators-api/

Examples

Run this code
api_token <- "demo"
country <- "USA"
indicator <- "gdp_current_usd"
result <- get_macro_indicators_data(api_token, country, indicator)

Run the code above in your browser using DataLab