trades-class: Class "trades"

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

An object of the class "trades" contains a data frame with columns "id", "side", and "shares" describing a simple list of trades to be performed.

Objects from the Class

Objects can be created by calls of the form new("trades", ...).

Slots

trades:

Object of class "data.frame" with columns "id", "side", and "shares".

Methods

No methods defined with class "trades" in the signature.

Author(s)

Kyle Campbell and Daniel Gerlanc

See Also

tradelist-class

Examples

1
2
3
df <- data.frame(id = c(1,2,3), side = c("B","X","C"), shares = c(10,20,30))

t <- new("trades", trades = df)

portfolio documentation built on July 10, 2021, 5:08 p.m.