Shows holdings data for one or more ETFs provided. Either individual holdings, sector weightings, or country weightings.

fmpc_holdings_etf(etfs = c("SPY"), holding = c("symbol", "sector", "country"))

Arguments

etfs

one or more valid ETFs.

holding

holding type can be other individual symbols, the sector breakdown, or the country breakdown. Valid inputs include 'symbol', 'sector', 'country'

Value

data frame of mutual fund holdings

Details

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

Examples


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')

 }