share_count: Compute the number of shares of a particular stock held at a...

Description Usage Arguments Value

View source: R/utility.R

Description

Compute the number of shares of a particular stock held at a date for a particular account.

Usage

1
share_count(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 tibble generated by clean_transaction_export().

Value

The number of shares, rounded to the nearest ten-thousandth share.


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