| Financial Derivatives Toolbox™ | ![]() |
InstSet = instoptembnd (CouponRate,
Settle, Maturity,...
OptSpec, Strike, ExerciseDates,
'AmericanOpt',...
AmericanOpt, 'Period', Period,
'Basis', Basis,...
'EndMonthRule', EndMonthRule,'Face',
Face, 'IssueDate',...
IssueDate, 'FirstCouponDate',
FirstCouponDate,...
'LastCouponDate', LastCouponDate,'StartDate',StartDate)
InstSet = instoptembnd(InstSetOld,
CouponRate,... )
[FieldList, ClassList, TypeString]
= instoptembnd
NINST-by-1 vector of decimal annual rate. | |
NINST-by-1 vector of settlement dates. | |
NINST-by-1 vector of maturity dates. | |
NINST-by-1 vector of string values 'Call' or 'Put'. | |
For a European or Bermuda option | |
NINST-by-NSTRIKES matrix of strike price values. Each row is the schedule for one option. If an option has fewer than NSTRIKES exercise opportunities, the end of the row is padded with NaN's. | |
NINST-by-NSTRIKES matrix of exercise dates. Each row is the schedule for one option. For a European option, there is only one ExerciseDate on the option expiry date. | |
(Optional) NINST-by-1 vector of flags. AmericanOpt is 0 for each European or Bermuda option. The default is 0 if AmericanOpt is NaN or not entered. | |
For an American option | |
Strike | NINST-by-1 vector of strike price values for each option. |
ExerciseDates | NINST-by-2 vector of exercise date boundaries. For each instrument, the option can be exercised on any coupon date between or including the pair of dates on that row. If only one non-NaN date is listed, or if ExerciseDates is NINST-by-1, the option can be exercised between the underlying bond Settle and the single listed ExerciseDate. |
AmericanOpt | NINST-by-1 vector of flags. AmericanOpt is 1 for each American option. The AmericanOpt argument is required to invoke American exercise rules. |
Period | (Optional) NINST-by-1 matrix for coupons per year. The default value is 2. |
Basis | (Optional) Day-count basis of the instrument. Basis is a vector of integers with the following possible values:
|
EndMonthRule | (Optional) NINST-by-1 matrix for the end-of-month rule. This rule applies only when Maturity is an end-of-month date for a month having 30 or fewer days. When the value is 0, the end-of-month rule is ignored, meaning that a bond's coupon payment date is always the same numerical day of the month. When the value is 1, the end-of-month rule is set rule on (default), meaning that a bond's coupon payment date is always the last actual day of the month. |
IssueDate | (Optional) NINST-by-1 matrix for the bond issue date. |
FirstCouponDate | (Optional) NINST-by-1 matrix for an irregular first coupon date. Date when a bond makes its first coupon payment. When FirstCouponDate and LastCouponDate are both specified, FirstCouponDate takes precedence in determining the coupon payment structure. |
LastCouponDate | (Optional) NINST-by-1 matrix for an irregular last coupon date. Last coupon date of a bond before the maturity date. In the absence of a specified FirstCouponDate, a specified LastCouponDate determines the coupon structure of the bond. The coupon structure of a bond is truncated at the LastCouponDate regardless of where it falls and will be followed only by the bond's maturity cash flow date. |
StartDate | (Optional) NINST-by-1 matrix (reserved input argument, currently unused) for date when a bond actually starts (the date from which a bond's cash flows can be considered). To make an instrument forward starting, specify this date as a future date. If StartDate is not explicitly specified, the effective start date is the settlement date. |
Face | (Optional) NINST-by-1 matrix for the face value. The default value is 100. |
Note Data arguments are NINST-by-1 vectors, scalar, or empty. Fill unspecified entries in vectors with NaN. Only one data argument is required to create the instrument. The others may be omitted or passed as empty matrices []. |
InstSet = instoptembnd (CouponRate, Settle, Maturity,...OptSpec, Strike, ExerciseDates, 'AmericanOpt',... AmericanOpt, 'Period', Period, 'Basis', Basis,... 'EndMonthRule', EndMonthRule,'Face', Face, 'IssueDate',...IssueDate, 'FirstCouponDate', FirstCouponDate,... 'LastCouponDate', LastCouponDate,'StartDate',StartDate) creates InstSet, a variable containing a collection of instruments.
Note instopembnd uses optional parameter name/value pairs such that, 'Name1', Value1, 'Name2', Value2, and so on, are a variable length list of name/value pairs. |
Instruments are broken down by type and each type can have different data fields. Each stored data field has a row vector or string for each instrument. See instget for more information on the InstSet variable.
InstSet = instoptembnd(InstSetOld, CouponRate,... ) adds 'OptEmBond' instruments to an instrument variable.
[FieldList, ClassList, TypeString] = instoptembnd lists field metadata for the 'OptEmBond' instrument.
FieldList is a number of fields (NFIELDS)-by-1 cell array of strings listing the name of each data field for this instrument type.
ClassList is an NFIELDS-by-1 cell array of strings listing the data class of each field. The class determines how arguments are parsed. Valid strings are 'dble', 'date', and 'char'.
TypeString is a string specifying the type of instrument added. For a bond option instrument, TypeString = 'OptEmBond'.
To create a bond with embedded options with the following data:
Settle = 'jan-1-2007';
Maturity = 'jan-1-2010';
CouponRate = 0.07;
OptSpec = 'call';
Strike= 100;
ExerciseDates= {'jan-1-2008' '01-Jan-2010'};
AmericanOpt=1;
Period = 1;
InstSet = instoptembnd(CouponRate, ...
Settle, Maturity, OptSpec, Strike, ExerciseDates,'AmericanOpt', AmericanOpt, ...
'Period', Period);To display the instrument:
instdisp(InstSet)
![]() | instoptbnd | instoptstock | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |