fmpc_security_sector: Pull daily returns for all sectors

Description Usage Arguments Value Examples

View source: R/securityMetrics.R

Description

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

Usage

1

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

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

fmpc_set_token('FMPAPIKEY')
allSymbs = fmpc_security_sector(30)


## End(Not run)

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