get_macro_indicators_data {eodhd}R Documentation

Get macro indicators data

Description

This function retrieves macro indicators data from the API.

Usage

get_macro_indicators_data(api_token, country, indicator = NULL)

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/

Value

A list containing the macro indicators data.

Examples

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


[Package eodhd version 1.0.4 Index]