knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(comment = NA)
iexcloudr
documentationsuppressWarnings(library(magrittr)) suppressWarnings(library(iexcloudr)) iexcloudr::apikey(api_key = Sys.getenv("IEXAPIKEYPUBLIC"), secret_key = Sys.getenv("IEXAPIKEYSECRET"),sandbox = TRUE)
Now let's get us a list of exchanges:
iexcloudr::exchanges() %>% dplyr::filter(region=='DE')
Or a list of symbols by exchange:
symbols_by_exchange('ETR') %>% head(5) %>% dplyr::select(symbol,name,date,type,currency,isEnabled)
Or the symbols by ISIN:
symbols_by_isin('DE0008404005') %>% dplyr::filter(region=='DE')
We can also get us some company info
company_info('ALV-GY')
and daily prices for a number of symbols:
prices(symbols = c('ALV-GY','AAPL'), start_date = '2021-05-15')
If you need exchange rates:
exchange_rates(symbols=c("EURUSD","EURGBP"), start_date='2021-05-15')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.