Class StrategyAutoConfiguration


  • @Configuration
    public class StrategyAutoConfiguration
    extends BaseConfiguration
    ScheduleAutoConfiguration activates flux scheduler.
    • Constructor Detail

      • StrategyAutoConfiguration

        public StrategyAutoConfiguration​(org.springframework.context.ApplicationContext newApplicationContext,
                                         TradeService newTradeService,
                                         AccountFlux newAccountFlux,
                                         TickerFlux newTickerFlux,
                                         OrderFlux newOrderFlux)
        Constructor.
        Parameters:
        newApplicationContext - application context
        newTradeService - trade service
        newAccountFlux - account flux
        newTickerFlux - ticker flux
        newOrderFlux - order flux.
    • Method Detail

      • configure

        @PostConstruct
        public void configure()
        Search for the strategy and instantiate it.