fmpc_security_sector {fmpcloudr} | R Documentation |
Pull daily returns for all sectors
Description
For each day, the return for a sector will be pulled
Usage
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
## Not run:
fmpc_set_token('FMPAPIKEY')
allSymbs = fmpc_security_sector(30)
## End(Not run)
[Package fmpcloudr version 0.1.5 Index]