Class ExchangeAutoConfiguration

    • Field Detail

      • UNAUTHORIZED_STATUS_CODE

        public static final int UNAUTHORIZED_STATUS_CODE
        Unauthorized http status code.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExchangeAutoConfiguration

        public ExchangeAutoConfiguration​(org.springframework.context.ApplicationContext newApplicationContext,
                                         ExchangeParameters newExchangeParameters,
                                         ExchangeAccountRepository newExchangeAccountRepository,
                                         OrderRepository newOrderRepository,
                                         TradeRepository newTradeRepository,
                                         PositionRepository newPositionRepository)
        Constructor.
        Parameters:
        newApplicationContext - application context
        newExchangeParameters - exchange parameters
        newExchangeAccountRepository - exchange account repository
        newOrderRepository - order repository
        newTradeRepository - trade repository
        newPositionRepository - position repository
    • Method Detail

      • configure

        @PostConstruct
        public void configure()
        Instantiating the exchange based on the parameter.
      • getExchangeService

        @Bean
        public ExchangeService getExchangeService()
        Getter for exchangeService.
        Returns:
        exchangeService
      • getUserService

        @Bean
        public UserService getUserService()
        Getter for userService.
        Returns:
        userService
      • getMarketService

        @Bean
        public MarketService getMarketService()
        Getter for marketService.
        Returns:
        marketService
      • getTradeService

        @Bean
        public TradeService getTradeService()
        Getter for tradeService.
        Returns:
        tradeService
      • getAccountFlux

        @Bean
        public AccountFlux getAccountFlux()
        Getter for accountFlux.
        Returns:
        accountFlux
      • getTickerFlux

        @Bean
        public TickerFlux getTickerFlux()
        Getter for tickerFlux.
        Returns:
        tickerFlux
      • getOrderFlux

        @Bean
        public OrderFlux getOrderFlux()
        Getter for orderFlux.
        Returns:
        orderFlux
      • getTradeFlux

        @Bean
        public TradeFlux getTradeFlux()
        Getter for tradeFlux.
        Returns:
        tradeFlux
      • getPositionFlux

        @Bean
        public PositionFlux getPositionFlux()
        Getter for positionFlux.
        Returns:
        positionFlux