Description Usage Arguments Details Value Examples
Shows holdings data for one or more ETFs provided. Either individual holdings, sector weightings, or country weightings.
1 | fmpc_holdings_etf(etfs = c("SPY"), holding = c("symbol", "sector", "country"))
|
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' |
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
data frame of mutual fund holdings
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# 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')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.