Financial Derivatives Toolbox    
bdtprice

Fixed income instrument prices by BDT interest rate tree

Syntax

Arguments

BDTTree
Interest rate tree structure created by bdttree.
InstSet
Variable containing a collection of NINST instruments. Instruments are categorized by type; each type can have different data fields. The stored data field is a row vector or string for each instrument.
Options
(Optional) Derivatives pricing options structure created with derivset.

Description

[Price, PriceTree] = bdtprice(BDTTree, InstSet, Options) computes arbitrage free prices for instruments using an interest rate tree created with bdttree. All instruments contained in a financial instrument variable, InstSet, are priced.

Price is a number of instruments (NINST)-by-1 vector of prices for each instrument. The prices are computed by backward dynamic programming on the interest rate tree. If an instrument cannot be priced, NaN is returned.

PriceTree is a MATLAB structure of trees containing vectors of instrument prices and accrued interest, and a vector of observation times for each node.

PriceTree.PTree contains the clean prices.

PriceTree.AITree contains the accrued interest.

PriceTree.tObs contains the observation times.

bdtprice handles instrument types: 'Bond', 'CashFlow', 'OptBond', 'Fixed', 'Float', 'Cap', 'Floor', 'Swap'. See instadd to construct defined types.

Related single-type pricing functions are:

Examples

Load the BDT tree and instruments from the data file deriv.mat. Price the cap and bond instruments contained in the instrument set.

You can use treeviewer to see the prices of these three instruments along the price tree.

See Also

bdtsens, bdttree, instadd, intenvprice, intenvsens


  Functions - Alphabetical List bdtsens