powered by
This function lets the user download stocks historical data
stocks_hist( symbols = c("VTI", "TSLA"), from = Sys.Date() - 365, to = Sys.Date(), today = TRUE, tax = 30, parg = FALSE, cache = TRUE, quiet = FALSE )# S3 method for stocks_hist plot(x, type = 1, ...)
# S3 method for stocks_hist plot(x, type = 1, ...)
Character Vector. List of symbols to download historical data
Date. Dates for range. If not set, 1 year will be downloaded. Do use more than 4 days or will be over-written.
Boolean. Do you wish to add today's live quote? This will happen only if to value is the same as today's date
Numeric. How much [0-99] of your dividends are gone with taxes?
Boolean. Personal argument. Used to personalize stuff, in this case, taxes changed from A to B in given date (hard-coded)
Boolean. Use daily cache if available?
Boolean. Keep quiet? If not, informative messages will be printed.
stocks_hist object
Integer. Select type of plot.
Additional parameters
data.frame for each Date and Symbol closing quote value.
Other Investment: daily_portfolio(), daily_stocks(), etf_sector(), splot_change(), splot_etf(), splot_growth(), splot_roi(), splot_summary(), splot_types(), stocks_file(), stocks_obj(), stocks_quote(), stocks_report()
daily_portfolio()
daily_stocks()
etf_sector()
splot_change()
splot_etf()
splot_growth()
splot_roi()
splot_summary()
splot_types()
stocks_file()
stocks_obj()
stocks_quote()
stocks_report()
Other Scrapper: filesGD(), get_mp3(), holidays(), ip_data(), readGS(), splot_etf(), stocks_quote(), trendsRelated(), writeGS()
filesGD()
get_mp3()
holidays()
ip_data()
readGS()
trendsRelated()
writeGS()
# NOT RUN { df <- stocks_hist(symbols = c("VTI", "FB", "FIW"), from = Sys.Date() - 180) print(head(df)) plot(df) # }
Run the code above in your browser using DataLab