public NavPosition(InstrumentSize Size, Decimal ExchangeRateUsed, IExRate ExchangeRateRecord) { this.Size = Size; if (Size.Underlying.CurrentPrice != null) this.ClosingPriceUsed = Size.Underlying.CurrentPrice.Price.Clone(1m); this.ExchangeRateRecord = Size.Underlying.ToCurrency.ExchangeRate; this.ExchangeRateUsed = ExchangeRateUsed; this.ClosingPriceRecord = null; setCurrentValue(); setCurrentBaseValue(); }
public NavPosition(InstrumentSize Size, Price ClosingPriceUsed, Decimal ExchangeRateUsed, IPriceDetail ClosingPriceRecord, IExRate ExchangeRateRecord) { this.Size = Size; this.ClosingPriceUsed = ClosingPriceUsed; this.ExchangeRateUsed = ExchangeRateUsed; this.ClosingPriceRecord = ClosingPriceRecord; this.ExchangeRateRecord = ExchangeRateRecord; setCurrentValue(); setCurrentBaseValue(); }