Class ScheduleAutoConfiguration
- java.lang.Object
-
- tech.cassandre.trading.bot.configuration.ScheduleAutoConfiguration
-
@Configuration @Profile("!schedule-disabled") @EnableScheduling public class ScheduleAutoConfiguration extends Object
ScheduleAutoConfiguration configures the flux calls.
-
-
Constructor Summary
Constructors Constructor Description ScheduleAutoConfiguration(AccountFlux newAccountFlux, TickerFlux newTickerFlux, OrderFlux newOrderFlux, TradeFlux newTradeFlux, PositionFlux newPositionFlux)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPositionFlux()
Recurrent calls the position flux.void
setupAccountFlux()
Recurrent calls the account flux.void
setupOrderFlux()
Recurrent calls the order flux.void
setupTickerFlux()
Recurrent calls the ticker flux.void
setupTradeFlux()
Recurrent calls the trade flux.
-
-
-
Constructor Detail
-
ScheduleAutoConfiguration
public ScheduleAutoConfiguration(AccountFlux newAccountFlux, TickerFlux newTickerFlux, OrderFlux newOrderFlux, TradeFlux newTradeFlux, PositionFlux newPositionFlux)
Constructor.- Parameters:
newAccountFlux
- account fluxnewTickerFlux
- ticker fluxnewOrderFlux
- order fluxnewTradeFlux
- trade fluxnewPositionFlux
- position flux
-
-
Method Detail
-
setupAccountFlux
@Scheduled(fixedDelay=1L, initialDelay=1000L) public void setupAccountFlux()
Recurrent calls the account flux.
-
setupTickerFlux
@Scheduled(fixedDelay=1L, initialDelay=1000L) public void setupTickerFlux()
Recurrent calls the ticker flux.
-
setupOrderFlux
@Scheduled(fixedDelay=1L, initialDelay=1000L) public void setupOrderFlux()
Recurrent calls the order flux.
-
setupTradeFlux
@Scheduled(fixedDelay=1L, initialDelay=1000L) public void setupTradeFlux()
Recurrent calls the trade flux.
-
setPositionFlux
@Scheduled(fixedDelay=1000L, initialDelay=1000L) public void setPositionFlux()
Recurrent calls the position flux.
-
-