fmpc_financial_metrics: Get financial metrics for one or more tickers

Description Usage Arguments Value Examples

View source: R/financials.R

Description

Pull finance ratios, enterprise value, key metrics, and financial growth

Usage

1
2
3
4
5
6
7
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

 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)

fmpcloudr documentation built on March 2, 2021, 1:06 a.m.