Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct { ID uuid.UUID Date time.Time Stock *stock.Stock Action Action Amount int // Price in dollar Price mm.Value PriceChange mm.Value PriceChangeCommission mm.Value Value mm.Value Commission mm.Value }
func NewOperation ¶
func (*Operation) FinalCommission ¶
func (o *Operation) FinalCommission() mm.Value
func (*Operation) FinalPricePaid ¶
func (o *Operation) FinalPricePaid() mm.Value
Click to show internal directories.
Click to hide internal directories.