calcTxnAvgCost: Calculates a per share or per contract cost of the...

.calcTxnAvgCostR Documentation

Calculates a per share or per contract cost of the transaction to match the units the price is quoted in

Description

Calculates a per share or per contract cost of the transaction to match the units the price is quoted in

Usage

.calcTxnAvgCost(TxnValue, TxnQty, ConMult = 1)

Arguments

TxnValue

total value of the transaction, including fees

TxnQty

total units (shares) of the transaction

ConMult

multiplier from instrument data

Value

TxnAvgCost: unit normalized (per share) cost implied by the transaction


braverock/blotter documentation built on Feb. 13, 2023, 1 p.m.