Description Usage Arguments Value Examples
Downloads stock data from the specified exchanges on the specified date.
1 2 | download_stocks(date = lubridate::today(), exchange = c("nse", "bse"),
dest_path = "./data", quiet = FALSE)
|
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. |
he function does not return anything. It just gets the files downloaded if data is available.
1 2 3 | download_stocks()
download_stocks(date = lubridate::today() - 3, exchange = "bse")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.