View source: R/googleFinanceData.R
googleFinanceData | R Documentation |
Download historical time series from Google Finance
googleFinanceData(sym, current = TRUE, sy = 2005, sm = 1, sd = 1, ey,
em, ed)
sym |
A character string for a (tradeable) symbol |
current |
A logical switch to indicate whether the current time is the endtime |
sy |
An integer value for the start year, default is 2005 |
sm |
An integer value for the start month, default is 1 |
sd |
An integer value for the start date, default is 1 |
ey |
An optional integer value for the end year, required if |
em |
An optional integer value for the end month, required if |
ed |
An optional integer value for the end day, required if |
The function uses an (unofficial) older CGI-style interface at Google to download historical data.
A data.table
object with a key on date
Dirk Eddelbuettel
The post at https://web.archive.org/web/20221007040328/https://chrisconlan.com/download-historical-stock-data-google-r-python/ provided the initial starting point
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.