get_symbols: get_symbols

Description Usage Arguments Examples

View source: R/get_symbols.R

Description

Download Market Data from Yahoo Finance.

Usage

1
get_symbols(symbols, start_at, end_at, drop_na = FALSE)

Arguments

symbols

Market symbols, e.g. "AAPL" or "GOOG". You can specify multiple series as c("AAPL", "GOOG").

start_at

Date character, e.g. "2018-12-13" in the format of "YYYY-MM-DD", or a date value

end_at

Date character, e.g. "2019-12-13" in the format of "YYYY-MM-DD", or a date value

drop_na

Boolean, indicating whether missings shall be removed

Examples

1
2
3
4
get_symbols("GOOG", "2018-12-26", "2019-12-20")
get_symbols("^GDAXI", "2018-12-26", "2019-12-20")
get_symbols(c("GOOG", "^GDAXI"), "2018-12-26", "2019-12-20")
get_symbols("BTC-USD", "2018-12-26", "2019-02-20", drop_na = FALSE)

markushhh/YahooFinance documentation built on Jan. 24, 2020, 3:19 a.m.