Description Usage Arguments Details Value Examples
View source: R/securityMetrics.R
Pull Technical Indicators for a set of symbols over a specific number of periods set by the frequency
1 2 3 4 5 6 7 | fmpc_security_tech_indic(
symbols = "AAPL",
indicator = c("SMA", "EMA", "WMA", "DEMA", "TEMA", "williams", "RSI", "ADX",
"standardDeviation"),
freq = c("daily", "1min", "5min", "15min", "30min", "1hour", "4hour"),
period = 10
)
|
symbols |
one or more symbols from the FMP available list that can be
found using |
indicator |
'SMA', 'EMA', 'WMA', 'DEMA', 'TEMA', 'williams', 'RSI', 'ADX', 'standardDeviation' |
freq |
the frequency of which to pull intraday data. Options are '1min', '5min', '15min', '30min', '1hour' |
period |
Number of periods over which to calculate the technical indicator |
Technical indicators include: 'SMA', 'EMA', 'WMA', 'DEMA', 'TEMA', 'williams', 'RSI', 'ADX', 'standardDeviation'
technical indicator in a data frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Setting API key to DEMO allows for AAPL only
fmpc_set_token()
fmpc_security_tech_indic('AAPL')
fmpc_security_tech_indic('AAPL', indicator = 'standardDeviation')
fmpc_security_tech_indic('AAPL', 'sma')
# For multiple symbols, set a valid API Token
fmpc_set_token('FMPAPIKEY')
fmpc_security_tech_indic(c('AAPL','MSFT','SPY'), indicator = 'RSI', freq = '15min', period = 25)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.