Esempio n. 1
0
        private void CalcQuantityPercentageTotal(IEnumerable <PublicTrade> trades)
        {
            if (trades.Count() < 1)
            {
                return;
            }
            var     totals = trades.Select(x => x.Total);
            decimal qmin   = totals.Min();
            decimal qmax   = totals.Max();

            foreach (var t in trades.ToList())
            {
                t.QuantityPercentage = OrderBook.CalcPercent(qmin, qmax, t.Total);
            }
        }