Learn R Programming

RobinHood (version 1.2.4)

get_historicals: Get historical price history from RobinHood

Description

Returns a data frame of historical price history for a given symbol.

Usage

get_historicals(RH, symbol, interval, span)

Arguments

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)

Examples

Run this code
# 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