TradeEventService

@Service
class TradeEventService(val tradeEventRepository: TradeEventRepository, val portfolioService: PortfolioService)

Constructors

Link copied to clipboard
constructor(tradeEventRepository: TradeEventRepository, portfolioService: PortfolioService)

Properties

Link copied to clipboard
Link copied to clipboard
val tradeEventRepository: TradeEventRepository

Functions

Link copied to clipboard
fun getAllByProductUser(productUser: ProductUser): List<TradeEvent>
Link copied to clipboard
fun getAssetByTradeEvent(tradeEvent: TradeEvent): PortfolioAsset
Link copied to clipboard
fun getSelectionByProductUser(productUser: ProductUser, offset: Int, size: Int): List<TradeEvent>
Link copied to clipboard
fun saveTradeEvent(tradeEvent: TradeEvent): TradeEvent
Link copied to clipboard
fun userHasTrades(productUser: ProductUser): Boolean