NotifierCore.DataProvider.ZicoreApi.ParseTrendBuy C# (CSharp) Method

ParseTrendBuy() public method

public ParseTrendBuy ( JToken json ) : IList
json JToken
return IList
        public IList<HotItem> ParseTrendBuy(JToken json)
        {
            var items = new List<HotItem>();
            foreach (var token in json)
            {
                var item = new HotItem(token["data_id"].ToObject<int>())
                {
                    SellPriceMoveCurrent = token["sell_price"].ToObject<float>(),
                    BuyPriceMoveCurrent = token["buy_price"].ToObject<float>(),
                    SellCountMove = token["sell_count"].ToObject<double>(),
                    BuyCountMove = token["buy_count"].ToObject<double>(),

                    DateTimeTrend = token["datetime"].ToObject<DateTime>(),

                    SellPriceMove = token["sell_price_move"].ToObject<float>(),
                    BuyPriceMove = token["buy_price_move"].ToObject<float>(),
                    SellCountMovePercent = token["sell_count_move"].ToObject<float>(),
                    BuyCountMovePercent = token["buy_count_move"].ToObject<float>(),
                };

                items.Add(item);
            }
            return items;
        }