Learn R Programming

eodhdR2 (version 0.5.2)

get_fundamentals: Retrieves and parses fundamental and financial data from eodhd api

Description

This function will download raw data from the fundamental end point of eodhd https://eodhd.com/financial-apis/stock-etfs-fundamental-data-feeds and return a list. The raw data includes:

  • General information for the company (code, ISIN, currency, ..)

  • Financial highlights

  • Valuation

  • Raw financial data (see parse_financials() for parsing this data)

  • and many more (see example for more details regarding the output)

Usage

get_fundamentals(
  ticker = "AAPL",
  exchange = "US",
  cache_folder = get_default_cache(),
  check_quota = TRUE
)

Value

a list with several fundamental information

Arguments

ticker

A company ticker (e.g. AAPL). You can find all tickers for a particular exchange with get_tickers().

exchange

A exchange symbol (e.g. US). You can find all tickers for a particular exchange with get_tickers(). Be aware that, for US companies, the exchange symbols is simply "US"

cache_folder

A local directory to store cache files. By default, all functions use a temporary path, meaning that the caching system is session persistent (it will remove all files when you exit your R session). If you want a persistent caching system, simply point argument cache_folder to a local directory in your filesystem. Be aware, however, that a persistent cache will not refresh your data for new api queries.

check_quota

A flag (TRUE/FALSE) for whether to check the current quota status from the api. This option implies a small cost of execution time. If you need speed, just set it to FALSE.

Examples

Run this code
if (FALSE) {
set_token(get_demo_token())
l_out <- get_fundamentals(ticker = "AAPL", exchange = "US")
names(l_out)
}

Run the code above in your browser using DataLab