new_trade: Trade Object Constructor function

Description Usage Arguments Value

View source: R/Trades.R

Description

Function to create an object of trade class

Usage

1
new_trade(type, date, symbol, quantity, price, amount, desc, trans_cost)

Arguments

type

trade type. string type.

date

date of transaction. Date type

symbol

symbol ticker. character type

quantity

number of shares. numeric type

price

price of shares. numeric type

amount

trade dollar amount. numeric type

desc

trade description. string type

trans_cost

transaction cost (dollars per share)

Value

object of class activity


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