View source: R/get_historicals_options.R
get_historicals_options | R Documentation |
Returns a data frame of historical options for a given symbol, strike price, and expiration date.
get_historicals_options( RH, chain_symbol, type, strike_price, expiration_date, interval = NULL, span = NULL )
RH |
object of class RobinHood |
chain_symbol |
(string) stock symbol |
type |
(string) one of ("put", "call") |
strike_price |
(numeric) strike price |
expiration_date |
(string) expiration date (YYYY-MM-DD) |
interval |
(string) one of ("5minute", "10minute", "hour", "day", "week") |
span |
(string) one of ("day", "week", "month") |
## Not run: # Login in to your RobinHood account RH <- RobinHood("username", "password") get_historicals_options(RH = RH, chain_symbol = "AAPL", interval = "10minute", type = "call", expiration_date = "2021-03-12", strike_price = 122) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.