TradeEvent

@Entity
open class TradeEvent : AutoGeneratedIdentifiableEntity

Constructors

Link copied to clipboard
constructor()
constructor(@NotNull assetHistory: @NotNull PortfolioAssetHistory, tradeType: TradeType, valueChange: Double, sharesChange: Double)
constructor(@NotNull assetHistory: @NotNull PortfolioAssetHistory, tradeType: TradeType, valueChange: Double, sharesChange: Double, tradeTime: LocalDateTime)

Functions

Link copied to clipboard
open fun getId(): @Nullable Long
abstract fun getId(): T
Link copied to clipboard
@NotNull
open fun getTradeType(@NotNull portfolioAssetHistory: @NotNull PortfolioAssetHistory): @NotNull TradeType
Link copied to clipboard
open fun setId(id: @Nullable Long)