Пример #1
0
        public static TPManager AddPair(CurrencyPair pair)
        {
            if (tradePairs == null)
            {
                tradePairs = new Utility.TSList <TPManager>();
            }

            TPManager tpMan = new TPManager(pair);

            tpMan.Setup();
            tpMan.RecalculateVolatility();
            tpMan.Start();
            tradePairs.Add(tpMan);

            return(tpMan);
        }
Пример #2
0
 public static void NotifyTickerUpdate(CurrencyPair pair)
 {
     if (updatedPairs == null)
     {
         updatedPairs = new Utility.TSList <CurrencyPair>();
     }
     updatedPairs.Add(pair);
 }