if (FALSE) {
# Get available balance sheet statements
fmp_get(
resource = "balance-sheet-statement",
symbol = "AAPL"
)
# Get last income statements
fmp_get(
resource = "income-statement",
symbol = "AAPL",
params = list(limit = 1)
)
# Get annual cash flow statements
fmp_get(
resource = "cash-flow-statement",
symbol = "AAPL",
params = list(period = "annual")
)
# Get historical market capitalization
fmp_get(
resource = "historical-market-capitalization",
symbol = "UNH",
params = list(from = "2023-12-01", to = "2023-12-31")
)
# Get stock list
fmp_get(
resource = "stock/list"
)
# Get company profile
fmp_get(
resource = "profile", symbol = "AAPL"
)
# Search for stock information
fmp_get(
resource = "search", params = list(query = "AAP")
)
# Get data with original column names
fmp_get(
resource = "profile", symbol = "AAPL", snake_case = FALSE
)
}
Run the code above in your browser using DataLab