getBySymbol: Retrieves calculated attributes for each position in the...

Description Usage Arguments Details Value

Description

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

Usage

1
2
.getBySymbol(Portfolio, Attribute, Dates = NULL, Symbols = NULL,
  native = FALSE)

Arguments

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

Details

items typically include things like 'Pos.Qty', 'Pos.Value', 'Txn.Value', 'Realized.PL', 'Unrealized.PL',or 'Trading.PL'

Value

regular xts object of values by symbol



Search within the blotter package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.