Class ScheduleAutoConfiguration


  • @Configuration
    @Profile("!schedule-disabled")
    @EnableScheduling
    public class ScheduleAutoConfiguration
    extends Object
    StrategyAutoConfiguration class configures the strategy.
    • Constructor Detail

      • ScheduleAutoConfiguration

        public ScheduleAutoConfiguration​(AccountFlux newAccountFlux,
                                         TickerFlux newTickerFlux,
                                         OrderFlux newOrderFlux)
        Constructor.
        Parameters:
        newAccountFlux - account flux
        newTickerFlux - ticker flux
        newOrderFlux - order flux
    • Method Detail

      • setupAccountFlux

        @Scheduled(fixedRateString="${cassandre.trading.bot.exchange.rates.account}")
        public void setupAccountFlux()
        Recurrent calls the account flux.
      • setupTickerFlux

        @Scheduled(fixedRateString="${cassandre.trading.bot.exchange.rates.ticker}")
        public void setupTickerFlux()
        Recurrent calls the ticker flux.
      • setupOrderFlux

        @Scheduled(fixedRateString="${cassandre.trading.bot.exchange.rates.order}")
        public void setupOrderFlux()
        Recurrent calls the order flux.