Retrieves quarterly/annual financial statements (income statement, balance sheet, or cash flow) for one or more tickers.
Usage
yf_get_financials(
tickers,
statement_type = c("income", "balance-sheet", "cash-flow")
)Value
A tibble with symbol as the first
column. Remaining columns vary by statement_type and reflect the
line items returned by the Yahoo Finance API.
Returns an empty tibble if all tickers fail.
Examples
if (FALSE) { # \dontrun{
yf_get_financials("AAPL", statement_type = "income")
yf_get_financials(c("AAPL", "MSFT"), statement_type = "balance-sheet")
} # }