powered by
Returns a data frame of historical price history for a given symbol.
get_historicals(RH, symbol, interval, span)
object of class RobinHood
(string) Stock symbol to query, single symbol only
(string) Interval of time to aggregate to (examples: hour, day, week, month)
(string) Period of time you are interested in (examples: day, week, month, year)
# NOT RUN { # Login in to your RobinHood account RH <- RobinHood("username", "password") get_historicals (RH = RH, symbol = "CAT", interval = "day", span = "month") # }
Run the code above in your browser using DataLab