watchlist: Manage your RobinHood watchlist

View source: R/watchlist.R

watchlistR Documentation

Manage your RobinHood watchlist

Description

Add and delete instruments from your RobinHood watchlist.

Usage

watchlist(RH, action, watchlist = "", ticker = "")

Arguments

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

Examples

## 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)

RobinHood documentation built on Jan. 7, 2023, 1:11 a.m.