# NOT RUN {
# }
# NOT RUN {
# Setting API key to 'demo' allows for AAPL only
fmpc_set_token()
fmpc_financial_metrics()
fmpc_financial_metrics('AAPL',metric = 'ratios', quarterly = FALSE,
trailingTwelve = FALSE, limit = 10)
# Must set a valid API token
fmpc_set_token('FMPAPIKEY')
fmpc_financial_metrics(c('AAPL','MSFT','TSLA'))
# International tickers work
fmpc_financial_metrics('RY.TO',metric = 'key', quarterly = TRUE,
trailingTwelve = TRUE, limit = 10)
# }
Run the code above in your browser using DataLab