fmpc_symbols_index: Current or historical constituents for a specific index

Description Usage Arguments Value Examples

View source: R/marketInfo.R

Description

Shows current or historical companies in the S&P 500, Nasdaq, or Dow Jones

Usage

1
2
3
4
fmpc_symbols_index(
  period = c("current", "historical"),
  index = c("sp500", "nasdaq", "dowjones")
)

Arguments

period

'current' for current list, 'historical' for a list of companies that have been added and the ones that were replaced

index

indicate the index to pull for: sp500, dowjones, nasdaq

Value

data frame of constituents

Examples

1
2
3
4
5
6
7
8
## Not run: 

# Must set a valid API token
fmpc_set_token('FMPAPIKEY')
fmpc_symbols_index()
fmpc_symbols_index('historical','nasdaq')

## End(Not run)

fmpcloudr documentation built on March 2, 2021, 1:06 a.m.