Bootstrap interest-rate curve from market data
Dcurve = IRDataCurve.bootstrap(Type,Settle,InstrumentTypes,Instruments)
Dcurve = IRDataCurve.bootstrap(Type,Settle,InstrumentTypes,Instruments,'Parameter1',Value1,'Parameter2',Value2, ...)
Type | Type of interest-rate curve. When using the |
Settle | Scalar or column vector of settlement dates. |
InstrumentTypes |
|
Instruments |
|
Compounding | (Optional) Scalar that sets the compounding frequency
per year for an
|
Basis | (Optional) Day-count basis of the interest-rate curve. A scalar of integers.
For more information, see Basis. |
InterpMethod | (Optional) Values are:
|
IRBootstrapOptionsObj | (Optional) An |
DiscountCurve | (Optional) |
For each bond Instrument
, you can specify
the following additional instrument parameters as parameter/value
pairs. For example, InstrumentBasis
distinguishes
a bond instrument's Basis
value from the curve's Basis
value.
For instruments of type deposit
, futures
,
or swap
the Basis
and Compounding
values
must be identical for each instance of the instrument.
| (Optional) Decimal number indicating the annual percentage rate used to determine the coupons payable on an instrument. |
| (Optional) Coupons per year of the instrument. A vector of integers. Allowed values are
|
| (Optional) Day-count basis of the instrument. A vector of integers.
For more information, see Basis. |
| (Optional) End-of-month rule. A vector. This rule applies only when
|
| (Optional) Date when an instrument was issued. |
| (Optional) Date when a bond makes its first coupon payment;
used when bond has an irregular first coupon period. When |
| (Optional) Last coupon date of a bond before the maturity
date; used when bond has an irregular last coupon period. In the absence
of a specified |
| (Optional) Face or par value. Default = |
Note
When using Instrument
parameter/value pairs,
you can specify simple interest for an Instrument
by
specifying the InstrumentPeriod
value as 0
.
If InstrumentBasis
and InstrumentPeriod
are
not specified for an Instrument
, the following
default values are used:
deposit
instrument uses InstrumentBasis
as 2
(act/360)
and InstrumentPeriod
is 0
(simple
interest).
futures
instrument uses InstrumentBasis
as 2
(act/360)
and InstrumentPeriod
is 4
(quarterly).
swap
instrument uses InstrumentBasis
as 2
(act/360)
and InstrumentPeriod
is 2
.
bond
instrument uses InstrumentBasis
as 0
(act/act)
and InstrumentPeriod
is 2
.
FRA
instrument uses InstrumentBasis
as 2
(act/360)
and InstrumentPeriod
is 4
(quarterly).
Dcurve = IRDataCurve.bootstrap(Type, Settle, InstrumentTypes,
Instruments, 'Parameter1', Value1, 'Parameter2', Value2, ...)
bootstraps
an interest-rate curve from market data. The dates of the bootstrapped
curve correspond to the maturity dates of the input instruments.
You must enter the optional arguments for Basis
, Compounding
, Interpmethod
, IRBootstrapOptionsObj
,
and DiscountCurve
as parameter/value pairs.