Calculates the total value of a transaction or trade

Share:

Description

Calculates the total value of a transaction or trade

Usage

1
.calcTxnValue(TxnQty, TxnPrice, TxnFees, ConMult = 1)

Arguments

TxnQty

total units (shares) of the transaction

TxnPrice

price at which the transaction was done

TxnFees

fees associated with the transaction, e.g. commissions

ConMult

multiplier from instrument data

Value

TxnValue: total dollar value of the transaction, including fees

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