/// <summary>
        /// Get current BotConfig
        /// </summary>
        /// <returns>BotConfig object</returns>
        public BotConfig GetBotConfig()
        {
            ServiceReady();
            var botConfig = _tradeBuilder.GetBotConfig();

            return(botConfig);
        }
Example #2
0
        public SwitcheoTraderManager(IOrderBookTradeBuilder orderBookTradeBuilder,
                                     ITradeBuilder tradeBuilder,
                                     IVolumeTradeBuilder volumeTradeBuilder)
        {
            this._orderBookTradeBuilder = orderBookTradeBuilder;
            this._tradeBuilder          = tradeBuilder;
            this._volumeTradeBuilder    = volumeTradeBuilder;

            _botConfig = _tradeBuilder.GetBotConfig();
        }
        public CoinBotManager(IBollingerBandTradeBuilder bollingerBuilder,
                              IVolumeTradeBuilderOG volumeBuilderOG,
                              IOrderBookTradeBuilder orderBookTradeBuilder,
                              ITradeBuilder tradeBuilder)
        {
            this._bollingerBuilder      = bollingerBuilder;
            this._volumeBuilderOG       = volumeBuilderOG;
            this._orderBookTradeBuilder = orderBookTradeBuilder;
            this._tradeBuilder          = tradeBuilder;

            _botConfig = _tradeBuilder.GetBotConfig();
        }