get_economic_events_data {eodhd} | R Documentation |
Get economic events data
Description
This function retrieves economic events data from the API.
Usage
get_economic_events_data(
api_token,
date_from = NULL,
date_to = NULL,
country = NULL,
comparison = NULL,
offset = NULL,
limit = NULL
)
Arguments
api_token |
The API token for authentication. |
date_from |
date from with format Y-m-d |
date_to |
date from with format Y-m-d |
country |
The country code is in ISO 3166 format, has 2 symbols |
comparison |
Possible values: mom, qoq, yoy |
offset |
Possible values from 0 to 1000 |
limit |
Possible values from 0 to 1000 |
Value
A list containing economic data events.
Examples
api_token <- "demo"
date_from <- "2017-09-10"
date_to <- "2017-09-12"
country <- "US"
comparison <- "qoq"
offset <- "0"
limit <- "50"
result <- get_economic_events_data(api_token, date_from, date_to, country,
comparison, offset, limit)
[Package eodhd version 1.0.4 Index]