View source: R/data_download.R
| download_stock_data | R Documentation |
Downloads historical stock price data for specified symbols. Uses tidyquant if available, otherwise falls back to quantmod.
download_stock_data(
symbols,
from,
to = Sys.Date(),
source = "yahoo",
format_for_task = TRUE
)
symbols |
Character vector of stock ticker symbols. |
from |
Start date (Date or character in YYYY-MM-DD format). |
to |
End date. Default |
source |
Data source: |
format_for_task |
Logical. If TRUE, formats output for
|
A tibble with stock data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.