download_stocks: Download stock data

Description Usage Arguments Value Examples

Description

Downloads stock data from the specified exchanges on the specified date.

Usage

1
2
download_stocks(date = lubridate::today(), exchange = c("nse", "bse"),
  dest_path = "./data", quiet = FALSE)

Arguments

date

The date you want the data for. The input should either be a date object or a something that lubridate::as_date can parse to be a date. If a string is in the format yyyy-mm-dd, this generally works. Defaults to lubridate::today()

exchange

Either "nse" or "bse". Defaults to "nse".

dest_path

The location where you want to download the files to. Defaults to the data folder in the current working directory. If there is no data folder, one will be created.

quiet

If TRUE, there will be no messages on the download status.

Value

he function does not return anything. It just gets the files downloaded if data is available.

Examples

1
2
3
download_stocks()

download_stocks(date = lubridate::today() - 3, exchange = "bse")

ilangurudev/IndianStocksR documentation built on May 12, 2019, 4:36 a.m.