cost_basis: Compute the total cost basis of a particular stock held at a...

Description Usage Arguments Value

View source: R/utility.R

Description

Compute the total cost basis of a particular stock held at a date.

Usage

1
cost_basis(ticker, account, date, cleaned_df)

Arguments

ticker

The stock of interest.

account

The account holding the shares.

date

The date at which to calculate the holding.

cleaned_df

The cleaned dataframe generated using clean_transaction_export().

Value

The cost basis, rounded to the nearest ten-thousandth dollar


akprasadan/scrape_vanguard_transactions documentation built on Feb. 21, 2022, 12:04 a.m.