//public Settings Settings { get; private set; }

        public void GetDeals()
        {
            //Wait at least one minute to check
            if (!ForexAuthentication.Connected || (DataDeals.IsValid && DataDeals.UpdateSpan < 10 * 1000))
            {
                return;
            }

            Deal[] ADeals;
            //CEDTS_TradingService.get
            try
            {
                ADeals = CEDTS_TradingService.GetOpenDealBlotter(ForexAuthentication.Token).Output;
            }
            catch (Exception e)
            {
                Exceptions.Add(e);
                return;
            }

            DataDeals.IsValid = false;

            lock (DataDeals)
            {
                DataDeals.Clear();

                foreach (Deal deal in ADeals)
                {
                    if (deal != null)
                    {
                        DataDeals.Add(deal.ConfirmationNumber, deal);
                    }
                }
            }

            DataDeals.IsValid = true;

            if (DataDeals.Count == 0)
            {
                DataDeals.IsValid = true;
                return;
            }
        }
 public void Clear()
 {
     Buffer.Clear();
     _TickerClear.SetNow();
 }