get_macro_indicators_data: Get macro indicators data

View source: R/MacroindicatorsAPI.R

get_macro_indicators_dataR 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)


eodhd documentation built on May 29, 2024, 2:46 a.m.