Example #1
0
        /// <summary>
        /// Add this symbol to our subscription list.
        /// </summary>
        public void Subscribe(string symbol, bool requestFundamental = true, bool active = true, bool regionOn = false)
        {
            var item = new IQLevel1WatchItem(symbol, active, regionOn);

            if (_key.ContainsKey(item.Symbol))
            {
                throw new Exception("Symbol (" + item.Symbol + ") already exists");
            }
            _key.Add(item.Symbol, item);
            item.Connect(this);
            if (requestFundamental)
            {
                item.RequestFundamental();
            }
        }
        /// <summary>
        /// Add this symbol to our subscription list.
        /// </summary>
        public void Subscribe(string symbol, bool requestFundamental = true, bool active = true, bool regionOn = false)
        {
            var item = new IQLevel1WatchItem(symbol, active, regionOn);

            if (_key.ContainsKey(item.Symbol))
            {
                return;
            }
            _key.Add(item.Symbol, item);
            item.Connect(this);
            if (requestFundamental)
            {
                item.RequestFundamental();
            }
        }
Example #3
0
 /// <summary>
 /// Add this symbol to our subscription list.
 /// </summary>
 public void Subscribe(string symbol, bool requestFundamental = true, bool active = true, bool regionOn = false)
 {
     var item = new IQLevel1WatchItem(symbol, active, regionOn);
     if (_key.ContainsKey(item.Symbol))
     {
         throw new Exception("Symbol (" + item.Symbol + ") already exists");
     }
     _key.Add(item.Symbol, item);
     item.Connect(this);
     if (requestFundamental)
     {
         item.RequestFundamental();
     }
 }