getPosAvgCost: Retrieves the most recent average cost of the position

Description Usage Arguments Value

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


blotter documentation built on April 15, 2017, 9:41 a.m.