Description Usage Arguments Value Warning Examples
View source: R/securityMetrics.R
Pulls stock split history for one or more securities
1 2 3 4 5 | fmpc_security_splits(
symbols = "AAPL",
startDate = Sys.Date() - 3600,
endDate = Sys.Date()
)
|
symbols |
one or more symbols from the FMP available list that can be
found using |
startDate |
filter start date in yyyy-mm-dd format. |
endDate |
filter end date in yyyy-mm-dd format. |
a data frame of split history
Each symbol is a separate API call. If the API token has monthly limits, this should be considered before making a bulk request
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Setting API key to DEMO allows for AAPL only
fmpc_set_token()
fmpc_security_splits('AAPL')
# For multiple symbols, set a valid API Token
fmpc_set_token('FMPAPIKEY')
fmpc_security_splits(c('AAPL','TSLA'), startDate = '2020-01-01')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.