toggle menu
crypto-trader-engine
JVM
switch theme
search in API
crypto-trader-engine
/
org.cryptotrader.engine.services
/
PortfolioTraderService
Portfolio
Trader
Service
@
Service
@
ConditionalOnProperty
(
name
=
"cryptotrader.engine.trading.enabled"
,
havingValue
=
"true"
,
matchIfMissing
=
true
)
open
class
PortfolioTraderService
Members
Constructors
Portfolio
Trader
Service
Link copied to clipboard
@
Autowired
constructor
(
portfolioService
:
PortfolioService
,
tradeEventService
:
TradeEventService
,
cryptoTrader
:
CryptoTrader
,
transactionManager
:
PlatformTransactionManager
)
Functions
add
Portfolio
To
Traders
Link copied to clipboard
open
fun
addPortfolioToTraders
(
portfolio
:
Portfolio
)
init
Link copied to clipboard
@
PostConstruct
open
fun
init
(
)
trade
Portfolios
Link copied to clipboard
@
Scheduled
(
fixedRate
=
5000
)
@
Transactional
open
fun
tradePortfolios
(
)
trigger
All
Traders
Link copied to clipboard
open
fun
triggerAllTraders
(
)