Esempio n. 1
0
        public static TradeHistory ReadFromJObject(JObject o)
        {
            var r = new TradeHistory();
            r.List = new Dictionary<int, Trade>();
            foreach (var item in o)
            {
                int tradeId = int.Parse(item.Key);
                Trade trade = Trade.ReadFromJObject(item.Value as JObject);
                r.List.Add(tradeId, trade);
            }

            return r;
        }