Shows holdings data for one or more ETFs provided. Either individual holdings, sector weightings, or country weightings.
one or more valid ETFs.
holding type can be other individual symbols, the sector breakdown, or the country breakdown. Valid inputs include 'symbol', 'sector', 'country'
data frame of mutual fund holdings
This differs from fmpc_held_by_mfs
which allows a search by
symbol to see the mutual funds holding the specified symbol(s). This function
searches by ETF and shows the holding of the ETF
if (FALSE) {
# For multiple symbols, set a valid API Token
fmpc_set_token('FMPAPIKEY')
fmpc_holdings_etf(c('VOO','SPY'), holding = 'symbol')
fmpc_holdings_etf(c('VOO','SPY'), holding = 'country')
fmpc_holdings_etf(c('VOO','SPY'), holding = 'sector')
}