PortfolioTraderService

@Service
@ConditionalOnProperty(name = "cryptotrader.engine.trading.enabled", havingValue = "true", matchIfMissing = true)
open class PortfolioTraderService

Constructors

Link copied to clipboard
@Autowired
constructor(portfolioService: PortfolioService, tradeEventService: TradeEventService, cryptoTrader: CryptoTrader, transactionManager: PlatformTransactionManager)

Functions

Link copied to clipboard
open fun addPortfolioToTraders(portfolio: Portfolio)
Link copied to clipboard
@PostConstruct
open fun init()
Link copied to clipboard
@Scheduled(fixedRate = 5000)
@Transactional
open fun tradePortfolios()
Link copied to clipboard