예제 #1
0
        internal FinanceCalcResult <System.DateTime> GetCoupncd()
        {
            var fds    = FinancialDaysFactory.Create(Basis);
            var period = fds.GetCouponPeriod(Settlement, Maturity, Frequency);

            return(new FinanceCalcResult <System.DateTime>(period.End.ToDateTime()));
        }
예제 #2
0
        internal FinanceCalcResult <double> GetCoupdays()
        {
            var fds = FinancialDaysFactory.Create(Basis);
            var settlementPeriod = fds.GetCouponPeriod(Settlement, Maturity, Frequency);

            return(new FinanceCalcResult <double>(fds.GetCoupdays(settlementPeriod.Start, settlementPeriod.End, Frequency)));
        }
예제 #3
0
        public FinanceCalcResult <double> Coupdaysnc()
        {
            var fds = FinancialDaysFactory.Create(Basis);
            var settlementPeriod = fds.GetCouponPeriod(Settlement, Maturity, Frequency);

            return(new FinanceCalcResult <double>(fds.GetDaysBetweenDates(Settlement, settlementPeriod.End)));
        }
예제 #4
0
        public FinanceCalcResult <int> Coupdaybs()
        {
            var fds = FinancialDaysFactory.Create(Basis);
            var settlementPeriod = fds.GetCouponPeriod(Settlement, Maturity, Frequency);

            return(new FinanceCalcResult <int>((int)Settlement.SubtractDays(settlementPeriod.Start) * -1));
        }
예제 #5
0
        internal FinanceCalcResult <int> GetCoupnum()
        {
            var fds = FinancialDaysFactory.Create(Basis);

            return(new FinanceCalcResult <int>(fds.GetNumberOfCouponPeriods(Settlement, Maturity, Frequency)));
        }
예제 #6
0
        protected FinancialDay GetCouponPeriodBySettlement()
        {
            var financialDays = FinancialDaysFactory.Create(Basis);

            throw new NotImplementedException();
        }