public SecuritiesPricing(CurrencyAndAmount Price, DateTime Date, TypeOfPriceCode PriceType) { this.Price = Price; this.PriceType = PriceType ?? (TypeOfPriceCode)"MARKET"; this.Date = Date; this.DebtPriceCalculation = new DebtPriceCalculation(); this.DebtDataCalculation = new DebtDataCalculation(); this.PriceFactType = new PriceFactType(); this.Yield = new Yield(); this.DebtSpread = new DebtSpread(); this.DebtYield = new DebtYield(); }
public SecuritiesPricing(CurrencyAndAmount Price, DateTime Date, TypeOfPriceCode PriceType, double?AskPrice = null, double?BidPrice = null, double?MidPrice = null, PriceFactType PriceFactType = null, Yield Yield = null, DebtPriceCalculation DebtPriceCalculation = null, DebtDataCalculation DebtDataCalculation = null, DebtYield DebtYield = null, DebtSpread DebtSpread = null) { this.Price = Price; this.PriceType = PriceType ?? (TypeOfPriceCode)"MARKET"; this.Date = Date; this.AskPrice = AskPrice; this.BidPrice = BidPrice; this.MidPrice = MidPrice; this.PriceFactType = PriceFactType ?? new PriceFactType(); this.Yield = Yield ?? new Yield(); this.DebtPriceCalculation = DebtPriceCalculation ?? new DebtPriceCalculation(); this.DebtDataCalculation = DebtDataCalculation ?? new DebtDataCalculation(); this.DebtSpread = DebtSpread ?? new DebtSpread(); this.DebtYield = DebtYield ?? new DebtYield(); }