Pull finance ratios, enterprise value, key metrics, and financial growth
fmpc_financial_metrics(
symbols = "AAPL",
metric = c("ratios", "key", "ev", "growth"),
quarterly = TRUE,
trailingTwelve = FALSE,
limit = 100
)
one or more publicly traded companies domestic or international
indicate the statement to view. Can be 'income', 'balance', or 'cashflow'
TRUE/FALSE whether the statement should be shown quarterly or annually
TRUE/FALSE whether finance ratios should show as trailing 12 months. Only available for finance ratios.
limit the result for each ticker
data frame of financial metrics
if (FALSE) {
# 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)
}