View source: R/get_historicals.R
get_historicals | R Documentation |
Returns a data frame of historical price history for a given symbol.
get_historicals(RH, symbol, interval, span, tz = Sys.timezone())
RH |
object of class RobinHood |
symbol |
(string) Stock symbol to query, single symbol only |
interval |
(string) Interval of time to aggregate to (examples: hour, day, week, month) |
span |
(string) Period of time you are interested in (examples: day, week, month, year) |
tz |
(string) timezone returned by OlsonNames() (eg: "America/Chicago") |
## Not run: # Login in to your RobinHood account RH <- RobinHood("username", "password") get_historicals(RH = RH, symbol = "CAT", interval = "day", span = "month") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.