public void SetConfiguration(string botInstanceId, Dictionary <string, string> variables)
        {
            var botInstance = _botInstanceDataRepository.GetBotInstanceData(botInstanceId);

            botInstance.SetVariables(variables);
            _botInstanceDataRepository.Save(botInstance);
        }
        public void ExecuteBot(string botInstanceId)
        {
            if (State == "RUNNING")
            {
                var instance  = _botInstanceRepository.GetBotInstanceData(botInstanceId);
                var processor = _botProcessorFactory.GetBotProcessor(instance.ProcessorID);

                _tradingViewAlertService.ProcessTradingViewUpdates(botInstanceId);

                if (instance.State == "CREATED")
                {
                    processor.Initialise(instance);
                }
                if (instance.State == "STARTED")
                {
                    processor.Process(instance, DateTime.UtcNow);
                    _botInstanceRepository.Save(instance);
                }
            }
        }