Example #1
0
        public JournalMaterialTrade(JObject evt) : base(evt, JournalTypeEnum.MaterialTrade)
        {
            MarketID   = evt["MarketID"].LongNull();
            TraderType = evt["TraderType"].Str();

            Paid = evt["Paid"]?.ToObjectProtected <Traded>();
            if (Paid != null)
            {
                Paid.Normalise();
            }

            Received = evt["Received"]?.ToObjectProtected <Traded>();
            if (Received != null)
            {
                Received.Normalise();
            }
        }