Ejemplo n.º 1
0
        private void UpdateLP(dynamic lastprice)
        {
            LastPriceNew lp = JsonConvert.DeserializeObject <LastPriceNew>($"{lastprice}");

            lock (locker)
                Values[lp.ShortName].UpdateValueLP(lp);

            LastUpdate = DateTime.Now;
        }
Ejemplo n.º 2
0
        internal void UpdateValueLP(LastPriceNew lp)
        {
            if (this.LastPrice / lp.Price > 0)
            {
                this.LastUpdatePriceDate = DateTime.Now;
                this.LastPrice           = lp.Price;
            }

            if (Bid / lp.bid > 0.005)
            {
                IsOBJumping = true;
            }

            this.Bid = lp.bid;
            this.Ask = lp.ask;

            this.DateTimeLP    = DateTime.Now;
            this.TradingStatus = lp.TradingStatus;
        }