new_gains: Realized Gains Constructor function

Description Usage Arguments Value

View source: R/Gains.R

Description

Creates new object of class gains

Usage

1
2
new_gains(symbol, quantity, purchase_date, purchase_price, sale_date,
  sale_price, gain, type)

Arguments

symbol

symbol ticker. character type

quantity

number of shares. numeric type

purchase_date

date of purchase. Date type

purchase_price

cost basis. numeric type

sale_date

date of sale. Date type

sale_price

sale price

gain

gain amount. numeric type

type

gain type. short or long term types. character type

Value

obj of class gains


chrishaarstick/madstork documentation built on Jan. 3, 2022, 8:34 p.m.