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(); }
public NavCashPosition(InstrumentSize Size, decimal ExchangeRateUsed, IHistoricalExRate ExchangeRateRecord) : base(Size, ExchangeRateUsed, ExchangeRateRecord) { }
public NavFundPosition(InstrumentSize Size, Price ClosingPriceUsed, decimal ExchangeRateUsed, IPriceDetail ClosingPriceRecord, IHistoricalExRate ExchangeRateRecord) : base(Size, ClosingPriceUsed, ExchangeRateUsed, ClosingPriceRecord, ExchangeRateRecord) { }