sell: Create Sell Trade Helper function

Description Usage Arguments Value Examples

View source: R/Trades.R

Description

Creates a sell type of trade object

Usage

1
sell(date, symbol, quantity, price, desc = "", trans_cost = 0.05)

Arguments

date

date of transaction. Date type

symbol

symbol ticker. character type

quantity

number of shares. numeric type

price

price of shares. numeric type

desc

trade description. string type

trans_cost

transaction cost (dollars per share)

Value

sell type trade object

Examples

1
sell(date = Sys.Date(), symbol = "SPY", quantity = 10, price = 100)

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