Learn R Programming

eodhd (version 1.0.4)

get_bulk_eod_splits_dividends_data: Get bulk fundamentals data

Description

This function retrieves bulk fundamentals data from the API.

Usage

get_bulk_eod_splits_dividends_data(
  api_token,
  country = "US",
  type = NULL,
  date = NULL,
  symbols = NULL,
  filter = NULL
)

Value

A list containing bulk fundamentals data.

Arguments

api_token

The API token for authentication.

country

<- 'US'

type

<- can be empty, splits or dividends

date

By default, the data for last trading day will be downloaded, but if you need any specific date, add ‘date’ parameter to the URL

symbols

To download last day data for several symbols, for example, for MSFT and AAPL, you can add the ‘symbols’ parameter

filter

If you need more data, like company name, you can use ‘&filter=extended’

Examples

Run this code
api_token <- "demo"
country <- 'US'
type <- 'splits'
date <- "2010-09-21"
symbols <- "MSFT"
filter <- "extended"
result <- get_bulk_eod_splits_dividends_data(api_token, country, type, date, symbols, filter)

Run the code above in your browser using DataLab