Exemple #1
0
 public void Subscribe(string symbol)
 {
     lock (symbolToTick)
     {
         try
         {
             if (api != null)
             {
                 if (!symbolToTick.ContainsKey(symbol))
                 {
                     TickEventArgs tick = new TickEventArgs();
                     tick.Symbol          = symbol;
                     symbolToTick[symbol] = tick;
                     api.Subscribe(symbol);
                 }
             }
         }
         catch (Exception e)
         {
             //logger.LogError(ViewId + " " + e.Message);
         }
     }
 }