get_portfolios: Get portfolio summaries related to your RobinHood Account

Description Usage Arguments Examples

View source: R/get_portfolios.R

Description

Returns a dataframe of portfolio summaries for a specific period of time. Default is current day.

Usage

1
get_portfolios(RH, interval = NULL, span = NULL)

Arguments

RH

object of class RobinHood

interval

(string) Interval of time to aggregate to (examples: hour, day, week, month)

span

(string) Period of time you are interested in (examples: day, week, month, year)

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Login in to your RobinHood account
RH <- RobinHood("username", "password")

get_portfolios(RH)
get_portfolios(RH, interval = "day", span = "3month")

## End(Not run)

RobinHood documentation built on March 1, 2021, 5:08 p.m.