Learn R Programming

eodhd (version 1.0.4)

get_historical_splits_data: Get historical splits data

Description

This function retrieves historical splits data from the API.

Usage

get_historical_splits_data(api_token, ticker, date_from = NULL, date_to = NULL)

Value

A list containing historical splits data.

Arguments

api_token

The API token for authentication.

ticker

consists of two parts: [SYMBOL_NAME].[EXCHANGE_ID].

date_from

date from with format Y-m-d

date_to

date from with format Y-m-d

Examples

Run this code
api_token <- "demo"
ticker <- "AAPL.US"
date_from <- "2017-09-10"
date_to <- "2017-09-12"
result <- get_historical_splits_data(api_token, ticker, date_from, date_to)

Run the code above in your browser using DataLab