Learn R Programming

eodhd (version 1.0.4)

get_upcoming_splits_data: Get upcoming splits data

Description

This function retrieves upcoming splits data from the API.

Usage

get_upcoming_splits_data(api_token, from_date = NULL, to_date = NULL)

Value

A list containing the upcoming splits data.

Arguments

api_token

The API token for authentication.

from_date

Format: YYYY-MM-DD. The start date for splits data, if not provided, today will be used.

to_date

Format: YYYY-MM-DD. The end date for splits data, if not provided, today + 7 days will be used.

Examples

Run this code
api_token <- "demo"
from_date <- "2017-09-10"
to_date <- "2017-09-12"
result <- get_upcoming_splits_data(api_token, from_date, to_date)

Run the code above in your browser using DataLab