Ejemplo n.º 1
0
 public StockDividend(ISecurityInstrument underlying, string isin)
     : base(underlying)
 {
     this.Name = underlying.Name + " Div.";
     if (!string.IsNullOrEmpty(isin))
         this.Isin = isin;
     initialize();
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public DividendHistory(ISecurityInstrument instrument)
     : base(instrument)
 {
     this.DividendType = DividendTypes.Cash;
 }
Ejemplo n.º 4
0
 protected InstrumentCorporateAction(ISecurityInstrument underlying)
 {
     this.Underlying = underlying;
 }
Ejemplo n.º 5
0
 public CorporateActionHistory(ISecurityInstrument instrument)
 {
     this.Instrument = instrument;
 }