watchlist | R Documentation |
Add and delete instruments from your RobinHood watchlist.
watchlist(RH, action, watchlist = "", ticker = "")
RH |
object class RobinHood |
action |
(string) one of: get, add, delete |
watchlist |
(string) name of watchlist to add, delete, or get instruments, null will return a list of watchlist |
ticker |
(string) list of tickers to add or delete, null will add or delete watchlist |
## Not run: # Login in to your RobinHood account RH <- RobinHood("username", "password") # Get a vector of your watchlist names watchlist(RH, action = "get") # Get a vectors of symbols on your watchlist watchlist(RH, action = "get", watchlist = "Default") # Add a symbol to your watchlist watchlist(RH, action = "add", watchlist = "Default", ticker = "CAT") # Delete a symbol from your watchlist watchlist(RH, action = "delete", watchlist = "Default", ticker = "CAT") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.