Description Usage Arguments Details Value
Retrieves calculated attributes for each position in the portfolio from the posPL table. Assembles into a symbol-by-time table useful for graphing or calculations
1 2 | .getBySymbol(Portfolio, Attribute, Dates = NULL, Symbols = NULL,
native = FALSE)
|
Portfolio |
a portfolio object containing transactions |
Attribute |
column name to be assembled for each symbol |
Dates |
dates to return the calculation over formatted as xts range |
Symbols |
an instrument identifier for a symbol included in the portfolio |
native |
whether to use the currency of the portfolio, or convert, default FALSE |
items typically include things like 'Pos.Qty', 'Pos.Value', 'Txn.Value', 'Realized.PL', 'Unrealized.PL',or 'Trading.PL'
regular xts object of values by symbol
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.