fmpc_financial_metrics {fmpcloudr} | R Documentation |
Get financial metrics for one or more tickers
Description
Pull finance ratios, enterprise value, key metrics, and financial growth
Usage
fmpc_financial_metrics(
symbols = "AAPL",
metric = c("ratios", "key", "ev", "growth"),
quarterly = TRUE,
trailingTwelve = FALSE,
limit = 100
)
Arguments
symbols |
one or more publicly traded companies domestic or international |
metric |
indicate the statement to view. Can be 'income', 'balance', or 'cashflow' |
quarterly |
TRUE/FALSE whether the statement should be shown quarterly or annually |
trailingTwelve |
TRUE/FALSE whether finance ratios should show as trailing 12 months. Only available for finance ratios. |
limit |
limit the result for each ticker |
Value
data frame of financial metrics
Examples
## 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)
## End(Not run)
[Package fmpcloudr version 0.1.5 Index]