rh_historicals: Get the historical quotes for a symbol.

Description Usage Arguments Examples

View source: R/rh_historicals.R

Description

Get the historical quotes for a symbol.

Usage

1
2
rh_historicals(symbols, interval = "day", span = "year",
  bounds = "regular", keep_meta = FALSE, to_xts = TRUE)

Arguments

interval

The interval: week|day|10minute|5minute

span

The span: day|week|year

bounds

extended|regular|trading

symbol

The shorthand symbols.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(robinhoodr)

symbol <- c("MSFT")

rh_historicals(symbol = symbol) # Get the last years closing prices.
rh_historicals(symbol = symbol, interval = "5minute", span = "day", bounds = "trading")
rh_historicals(symbol = symbol, interval = "5minute", span = "week", bounds = "regular")
rh_historicals(symbol = symbol, interval = "10minute", span = "day", bounds = "regular")
rh_historicals(symbol = symbol, span = "year", keep_meta = TRUE, to_xts = FALSE)
rh_historicals(symbol = symbol, span = "", to_xts = FALSE)
rh_historicals(symbol = symbol, to_xts = TRUE)

krose/robinhoodr documentation built on May 20, 2019, 6:41 p.m.