Exemplo n.º 1
0
        public static double nextCouponRate(Bond bond, Date settlementDate = null)
        {
            if (settlementDate == null)
            {
                settlementDate = bond.settlementDate();
            }

            return(CashFlows.nextCouponRate(bond.cashflows(), false, settlementDate));
        }