Description Usage Arguments Value Examples
Pull finance ratios, enterprise value, key metrics, and financial growth
1 2 3 4 5 6 7 | fmpc_financial_metrics(
symbols = "AAPL",
metric = c("ratios", "key", "ev", "growth"),
quarterly = TRUE,
trailingTwelve = FALSE,
limit = 100
)
|
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 |
data frame of financial metrics
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.