public StockDividend(ISecurityInstrument underlying, string isin) : base(underlying) { this.Name = underlying.Name + " Div."; if (!string.IsNullOrEmpty(isin)) this.Isin = isin; initialize(); }
public DividendHistory(DividendTypes dividendType, ISecurityInstrument instrument, DateTime exDividendDate, DateTime settlementDate, Price unitPrice, decimal scripRatio) : this(instrument) { if (dividendType == DividendTypes.Cash && (unitPrice == null || unitPrice.IsZero)) throw new ApplicationException("The unit price can not be null for cash dividend"); else if (dividendType == DividendTypes.Scrip && scripRatio == 0M) throw new ApplicationException("The scrip ratio can not be 0 for scrip dividend"); this.DividendType = dividendType; this.ExDividendDate = exDividendDate; this.SettlementDate = settlementDate; this.UnitPrice = unitPrice; this.ScripRatio = scripRatio; }
public DividendHistory(ISecurityInstrument instrument) : base(instrument) { this.DividendType = DividendTypes.Cash; }
protected InstrumentCorporateAction(ISecurityInstrument underlying) { this.Underlying = underlying; }
public CorporateActionHistory(ISecurityInstrument instrument) { this.Instrument = instrument; }