Esempio n. 1
0
        public static TRADEINFORMATIONv3 ReadFromJObject(JObject o)
        {
            if (o == null)
            {
                return(null);
            }

            return(new TRADEINFORMATIONv3()
            {
                Amount = o.Value <decimal>("amount"),
                Price = o.Value <decimal>("price"),
                Timestamp = UNIXTIME.ConvertToDateTime(o.Value <UInt32>("timestamp")),
                Tid = o.Value <UInt32>("tid"),
                Type = TRADEINFORMATIONTYPEHELPER.FromString(o.Value <string>("type"))
            });
        }
Esempio n. 2
0
        public static TRADEINFORMATIONv2 ReadFromJObject(JObject o)
        {
            if (o == null)
            {
                return(null);
            }

            return(new TRADEINFORMATIONv2()
            {
                Amount = o.Value <decimal>("amount"),
                Price = o.Value <decimal>("price"),
                Date = UNIXTIME.ConvertToDateTime(o.Value <UInt32>("date")),
                Item = BTCECURRENCYHELPER.FromString(o.Value <string>("item")),
                PriceCurrency = BTCECURRENCYHELPER.FromString(o.Value <string>("price_currency")),
                Tid = o.Value <UInt32>("tid"),
                Type = TRADEINFORMATIONTYPEHELPER.FromString(o.Value <string>("trade_type"))
            });
        }