if (FALSE) {
# 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")
}
Run the code above in your browser using DataLab