Additions
This commit is contained in:
16
MarketDataLib/Generator/Model/RealtimeGainLoss.cs
Normal file
16
MarketDataLib/Generator/Model/RealtimeGainLoss.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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;}}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user