Previous quasi-coupon date for fixed-income security

determines
the previous quasi-coupon date for a set of `PreviousQuasiCouponDate`

= cpndatepq(`Settle`

,`Maturity`

)`NUMBONDS`

fixed
income securities. Prior quasi-coupon dates determine the length of
the standard coupon period for the fixed income security of interest,
and do not necessarily coincide with actual coupon payment dates.
This function finds the previous quasi-coupon date for bonds with
a coupon structure whose first or last period is either normal, short,
or long.

Required input arguments must be number of bonds, `NUMBONDS`

-by-`1`

or `1`

-by-`NUMBONDS`

,
conforming vectors or scalars.

,
using optional input arguments, determines the previous quasi-coupon
date for a set of `PreviousQuasiCouponDate`

= cpndatepq(`Settle`

,`Maturity`

,`Period`

,`Basis`

,`EndMonthRule`

,`IssueDate`

,`FirstCouponDate`

,`LastCouponDate`

)`NUMBONDS`

fixed income securities.
Prior quasi-coupon dates determine the length of the standard coupon
period for the fixed income security of interest, and do not
necessarily coincide with actual coupon payment dates. This function
finds the previous quasi-coupon date for bonds with a coupon structure
whose first or last period is either normal, short, or long.

Optional input arguments must be either `NUMBONDS`

-by-`1`

or `1`

-by-`NUMBONDS`

conforming
vectors, scalars, or empty matrices.

If all the inputs for `Settle`

, `Maturity`

, `IssueDate`

, `FirstCouponDate`

,
and `LastCouponDate`

are either serial date numbers
or date character vectors, then `PreviousQuasiCouponDate`

is
returned as a serial date number. The function `datestr`

converts a serial date number
to a formatted date character vector.

If any of the inputs for `Settle`

, `Maturity`

, `IssueDate`

, `FirstCouponDate`

,
and `LastCouponDate`

are datetime arrays, then `PreviousQuasiCouponDate`

is
returned as a datetime array.

`accrfrac`

| `cfamounts`

| `cfdates`

| `cftimes`

| `cpncount`

| `cpndaten`

| `cpndatenq`

| `cpndatep`

| `cpndaysn`

| `cpndaysp`

| `cpnpersz`

| `datetime`

Was this topic helpful?