Financial Derivatives Toolbox    
intenvsens

Instrument price and sensitivities by a set of zero curves

Syntax

Arguments

RateSpec
A structure encapsulating the properties of an interest rate structure. See intenvset for information on creating RateSpec.
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.

Description

[Delta, Gamma, Price] = intenvsens(RateSpec, InstSet) computes dollar prices and price sensitivities for instruments using a zero coupon bond rate term structure.

Delta is a number of instruments (NINST) by number of curves (NUMCURVES) matrix of deltas, representing the rate of change of instrument prices with respect to shifts in the observed forward yield curve. Delta is computed by finite differences.

Gamma is an NINST-by-NUMCURVES matrix of gammas, representing the rate of change of instrument deltas with respect to shifts in the observed forward yield curve. Gamma is computed by finite differences.

Price is an NINST-by-NUMCURVES matrix of prices of each instrument. If an instrument cannot be priced, a NaN is returned.

intenvsens handles the following instrument types: 'Bond', 'CashFlow', 'Fixed', 'Float', 'Swap'. See instadd for information about constructing defined types.

Examples

Load the tree and instruments from a data file.

See Also

hjmprice, hjmsens, instadd, intenvprice, intenvset


  intenvprice intenvset