Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

cdprice

Price of certificate of deposit

Syntax

[Price, AccrInt] = cdprice(Yield, CouponRate, Settle, Maturity,
IssueDate, Basis)

Arguments

Yield

Simple yield to maturity over the basis denominator.

CouponRate

Coupon interest rate in decimal.

Settle

Settlement date, specified as a serial date number, date character vector, or datetime array. Settle must be earlier than Maturity.

Maturity

Maturity date, specified as a serial date number, date character vector, or datetime array.

IssueDate

Issue date, specified as a serial date number, date character vector, or datetime array.

Basis

(Optional) Day-count basis of the instrument.

  • 0 = actual/actual

  • 1 = 30/360 (SIA)

  • 2 = actual/360 (default)

  • 3 = actual/365

  • 4 = 30/360 (BMA)

  • 5 = 30/360 (ISDA)

  • 6 = 30/360 (European)

  • 7 = actual/365 (Japanese)

  • 8 = actual/actual (ICMA)

  • 9 = actual/360 (ICMA)

  • 10 = actual/365 (ICMA)

  • 11 = 30/360E (ICMA)

  • 12 = actual/365 (ISDA)

  • 13 = BUS/252

For more information, see basis.

Each required input must be some certificates of deposit (NCDS)-by-1 or 1-by-NCDS conforming vector or scalar. The optional Basis argument may be either a NCDS-by-1 or a 1-by-NCDS vector, a scalar, or the empty matrix ([]).

Description

[Price, AccrInt] = cdprice(Yield, CouponRate, Settle, Maturity, IssueDate, Basis) computes the price of a certificate of deposit given its yield.

Price is the clean price of the certificate of deposit per $100 of face value.

AccruedInt is the accrued interest payable at settlement per unit of face value.

This function assumes that the certificates of deposit pay interest at maturity. Because of the simple interest treatment of these securities, the function is best used for short-term maturities (less than 1 year). The default simple interest calculation is the actual/360 convention.

Examples

collapse all

This example shows how to compute the price and the accrued interest due on the settlement date, given a certificate of deposit with the following characteristics.

Yield           =  0.0525;
CouponRate      =  0.05;
Settle          =  '02-Jan-02';
Maturity        =  '31-Mar-02';
IssueDate       =  '1-Oct-01';

[Price, AccruedInt] = cdprice(Yield, CouponRate, Settle, ...
Maturity, IssueDate)
Price =

   99.9233


AccruedInt =

    1.2917

This example shows how to use datetime inputs to compute the price and the accrued interest due on the settlement date, given a certificate of deposit with the following characteristics.

Yield =  0.0525;
CouponRate =  0.05;
Settle =  datetime('02-Jan-02','Locale','en_US');
Maturity =  datetime('31-Mar-02','Locale','en_US');
IssueDate =  datetime('1-Oct-01','Locale','en_US');

[Price, AccruedInt] = cdprice(Yield, CouponRate, Settle, ...
Maturity, IssueDate)
Price =

   99.9233


AccruedInt =

    1.2917

Related Examples

Introduced before R2006a

Was this topic helpful?