Learn R Programming

eodhd (version 1.0.4)

get_insider_transactions_data: Get insider transactions data

Description

This function retrieves the insider transactions from the API.

Usage

get_insider_transactions_data(
  api_token,
  date_from = NULL,
  date_to = NULL,
  code = NULL,
  limit = NULL
)

Value

A list containing the insider transactions data.

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

code

to get the data only for Apple Inc (AAPL), use AAPL.US or AAPL ticker code.

limit

the limit for entries per result, from 1 to 1000.

Examples

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

Run the code above in your browser using DataLab