コード例 #1
0
        public static double previousCouponRate(Bond bond, Date settlementDate = null)
        {
            if (settlementDate == null)
            {
                settlementDate = bond.settlementDate();
            }

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