Description Usage Arguments Examples
View source: R/rh_historicals.R
Get the historical quotes for a symbol.
1 2 | rh_historicals(symbols, interval = "day", span = "year",
bounds = "regular", keep_meta = FALSE, to_xts = TRUE)
|
interval |
The interval: week|day|10minute|5minute |
span |
The span: day|week|year |
bounds |
extended|regular|trading |
symbol |
The shorthand symbols. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.