Class ScheduleAutoConfiguration
- java.lang.Object
-
- tech.cassandre.trading.bot.configuration.ScheduleAutoConfiguration
-
@Configuration @Profile("!schedule-disabled") @EnableScheduling public class ScheduleAutoConfiguration extends Object
StrategyAutoConfiguration class configures the strategy.
-
-
Constructor Summary
Constructors Constructor Description ScheduleAutoConfiguration(AccountFlux newAccountFlux, TickerFlux newTickerFlux, OrderFlux newOrderFlux)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setupAccountFlux()
Recurrent calls the account flux.void
setupOrderFlux()
Recurrent calls the order flux.void
setupTickerFlux()
Recurrent calls the ticker flux.
-
-
-
Constructor Detail
-
ScheduleAutoConfiguration
public ScheduleAutoConfiguration(AccountFlux newAccountFlux, TickerFlux newTickerFlux, OrderFlux newOrderFlux)
Constructor.- Parameters:
newAccountFlux
- account fluxnewTickerFlux
- ticker fluxnewOrderFlux
- 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.
-
-