Class StrategyAutoConfiguration


  • @Configuration
    public class StrategyAutoConfiguration
    extends BaseConfiguration
    StrategyAutoConfiguration configures the strategy.
    • Constructor Detail

      • StrategyAutoConfiguration

        public StrategyAutoConfiguration​(org.springframework.context.ApplicationContext newApplicationContext,
                                         UserService newUserService,
                                         TradeService newTradeService,
                                         PositionService newPositionService,
                                         AccountFlux newAccountFlux,
                                         TickerFlux newTickerFlux,
                                         OrderFlux newOrderFlux,
                                         TradeFlux newTradeFlux,
                                         PositionFlux newPositionFlux,
                                         PositionRepository newPositionRepository,
                                         TradeRepository newTradeRepository)
        Constructor.
        Parameters:
        newApplicationContext - application context
        newUserService - user service
        newTradeService - trade service
        newPositionService - position service
        newAccountFlux - account flux
        newTickerFlux - ticker flux
        newOrderFlux - order flux
        newTradeFlux - trade flux
        newPositionFlux - position flux
        newPositionRepository - position repository
        newTradeRepository - trade repository
    • Method Detail

      • configure

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