Financial Derivatives Toolbox    
hjmprice

Fixed income instrument prices by HJM interest rate tree

Syntax

Arguments

HJMTree
Heath-Jarrow-Morton tree sampling a forward rate process. See hjmtree for information on creating HJMTree.
InstSet
Variable containing a collection of 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 = hjmprice(HJMTree, InstSet, Options) computes arbitrage free prices for instruments using an interest rate tree created with hjmtree. NINST instruments from a financial instrument variable, InstSet, are priced.

Price is a 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 structure containing a bushy tree with NINST-by-1 price vectors at every state.

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

See single-type pricing functions to retrieve state by state pricing tree information.

Example

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

See Also

hjmsens, hjmtree, hjmvolspec, instadd, intenvprice, intenvsens


 hedgeslf hjmsens