TraderService

@Service
open class TraderService

Constructors

Link copied to clipboard
@Autowired
constructor(portfolioService: PortfolioService, currencyService: CurrencyService, tradeEventService: TradeEventService)

Functions

Link copied to clipboard
@NotNull
open fun getAllTradeEvents(@NotNull user: @NotNull ProductUser): @NotNull List<TradeEvent>
Link copied to clipboard
open fun getTradeEvents(@NotNull user: @NotNull ProductUser): TradeEventListResponse
open fun getTradeEvents(@NotNull user: @NotNull ProductUser, offset: Int, limit: Int): TradeEventListResponse
Link copied to clipboard
@NotNull
open fun toTradeEventListResponse(@NotNull tradeEvents: @NotNull List<TradeEvent>): @NotNull TradeEventListResponse
Link copied to clipboard
@NotNull
open fun toTradeEventResponse(@NotNull tradeEvent: @NotNull TradeEvent): @NotNull TradeEventResponse
Link copied to clipboard
open fun userHasTrades(@NotNull user: @NotNull ProductUser): Boolean