コード例 #1
0
ファイル: StockDividend.cs プロジェクト: kiquenet/B4F
 public StockDividend(ISecurityInstrument underlying, string isin)
     : base(underlying)
 {
     this.Name = underlying.Name + " Div.";
     if (!string.IsNullOrEmpty(isin))
         this.Isin = isin;
     initialize();
 }
コード例 #2
0
ファイル: DividendHistory.cs プロジェクト: kiquenet/B4F
        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;
        }
コード例 #3
0
ファイル: DividendHistory.cs プロジェクト: kiquenet/B4F
 public DividendHistory(ISecurityInstrument instrument)
     : base(instrument)
 {
     this.DividendType = DividendTypes.Cash;
 }
コード例 #4
0
 protected InstrumentCorporateAction(ISecurityInstrument underlying)
 {
     this.Underlying = underlying;
 }
コード例 #5
0
 public CorporateActionHistory(ISecurityInstrument instrument)
 {
     this.Instrument = instrument;
 }