View source: R/MacroindicatorsAPI.R
get_macro_indicators_data | R Documentation |
This function retrieves macro indicators data from the API.
get_macro_indicators_data(api_token, country, indicator = NULL)
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/ |
A list containing the macro indicators data.
api_token <- "demo"
country <- "USA"
indicator <- "gdp_current_usd"
result <- get_macro_indicators_data(api_token, country, indicator)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.