For each day, the return for a sector will be pulled

fmpc_security_sector(days = 25)

Arguments

days

number of trading days to pull returns from current day. For example, 20 will pull the last 20 trading days, about one month of data.

Value

data frame of sectors and daily returns

Examples

if (FALSE) { fmpc_set_token('FMPAPIKEY') allSymbs = fmpc_security_sector(30) }