using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MarketData.Generator.Model { public class RealtimeGainLoss { public double Exposure{get;set;} public double MarketValue{get;set;} public double GainLoss{get{return MarketValue-Exposure;}} public double GainLossPercent{get{return Exposure==0?0:(MarketValue-Exposure)/Exposure;}} } }