Class StrategyAutoConfiguration


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

      • StrategyAutoConfiguration

        public StrategyAutoConfiguration​(org.springframework.context.ApplicationContext newApplicationContext,
                                         ExchangeParameters newExchangeParameters,
                                         UserService newUserService,
                                         TradeService newTradeService,
                                         AccountFlux newAccountFlux,
                                         TickerFlux newTickerFlux,
                                         OrderFlux newOrderFlux,
                                         TradeFlux newTradeFlux,
                                         ExchangeAccountRepository newExchangeAccountRepository,
                                         StrategyRepository newStrategyRepository,
                                         OrderRepository newOrderRepository,
                                         TradeRepository newTradeRepository,
                                         PositionRepository newPositionRepository,
                                         PositionFlux newPositionFlux)
        Constructor.
        Parameters:
        newApplicationContext - application context
        newExchangeParameters - exchange parameters
        newUserService - user service
        newTradeService - trade service
        newAccountFlux - account flux
        newTickerFlux - ticker flux
        newOrderFlux - order flux
        newTradeFlux - trade flux
        newExchangeAccountRepository - exchange account repository
        newStrategyRepository - strategy repository
        newOrderRepository - order repository
        newTradeRepository - trade repository
        newPositionRepository - position repository
        newPositionFlux - position flux
    • Method Detail

      • configure

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

        @Bean
        public PositionService getPositionService()
        Getter for positionService.
        Returns:
        positionService