get attributes from each portfolio in an account

Share:

Description

Retrieves calculated attributes for each portfolio in the account from the portfolio summary table. Assembles into a portfolio-by-time table, normalized to the Account currency

Usage

1
.getByPortf(Account, Attribute, Dates = NULL)

Arguments

Account

an Account object containing Portfolio summaries

Attribute

column name to be assembled for each symbol

Dates

dates to return the calculation over formatted as xts range

Details

Attribute: typically any of: 'Long.Value', 'Short.Value', 'Net.Value', 'Gross.Value', 'Txn.Fees', 'Realized.PL', 'Unrealized.PL', or 'Trading.PL'

Value

regular xts object of values by portfolio

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.