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


cloudcello/blotter documentation built on May 13, 2019, 8:04 p.m.