port_transform | R Documentation |
Transforms a PortfolioHistory response object returned from account_portfolio
.
port_transform(resp)
resp |
|
A PortfolioHistory (tibble)
Object with R amenable data types. Note that base value & timeframe can be accessed by calling attr(out, "info")
on the returned tibble.
timestamp
(Date/POSIXlt/Datetime(POSIXct)/character)
time of each data element, with the first element being the beginning of the time window.
equity
(numeric)
equity value of the account in dollar amount as of the end of each time window
profit_loss
(numeric)
profit/loss in dollar from the base value
profit_loss_pct
(numeric)
profit/loss in percentage from the base value
base_value
(numeric)
basis in dollar of the profit loss calculation
timeframe
(character)
time window size of each data element
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.