Retrieves the most recent average cost of the position

Description

Retrieves the most recent average cost of the position

Usage

1
.getPosAvgCost(Portfolio, Symbol, Date)

Arguments

Portfolio

a portfolio object containing transactions

Symbol

an instrument identifier for a symbol included in the portfolio

Date

timestamp as of which to have the most recent position

Value

Numeric value of the average cost of the current position

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