download_etf_constituents: Download IShares constituents

Description Usage Arguments Value

Description

downloads from the IShares website the data regarding etf constituents. Constituent data is publish in each etf web page as a csv file and we read it directly from there. In summary_data there's the link pointing to the page where the csv is published

Usage

1
2
download_etf_constituents(summary_data, download_csv = TRUE,
  url_fixed_number, region)

Arguments

summary_data

summary data dataframe as returned by parse_summary_data

download_csv

if TRUE the constituents csv files will be saved in a local folder called 'csv_files'

url_fixed_number

a country-specific code found in the url

region

IShares geographical region (e.g. US)

Value

a named-list. Names are the localExchangeTicker found in summary_data and the elements are the csv file found in each ETF web page in melted format. By melted format we mean as output of the function readr::melt_csv


skiamu/ETF documentation built on April 28, 2020, 6:08 a.m.