Example #1
0
        public void ProcessAllTradingViewUpdates()
        {
            foreach (var instanceKey in _tradingViewUpdates.Keys.ToList())
            {
                foreach (var updateData in _tradingViewUpdates[instanceKey])
                {
                    _instanceConfigurationService.SetConfiguration(instanceKey, updateData);
                    _tradingViewUpdates[instanceKey].Remove(updateData);
                }

                if (_tradingViewUpdates[instanceKey].Count == 0)
                {
                    _tradingViewUpdates.Remove(instanceKey);
                }
            }
        }
 public void SetConfiguration(string botInstanceId, Dictionary <string, string> variables)
 {
     _instanceConfigurationService.SetConfiguration(botInstanceId, variables);
 }