Construct bond option
InstSet = instoptbnd(BondIndex,OptSpec,Strike,ExerciseDates)
InstSet = instoptbnd(InstSet,BondIndex,OptSpec,Strike,ExerciseDates)
InstSet = instoptbnd(InstSet,BondIndex,OptSpec,Strike,ExerciseDates,AmericanOpt)
[FieldList,ClassList,TypeString]
= instoptbnd
| Variable containing a collection of instruments. Instruments are classified by type; each type can have different data fields. The stored data field is a row vector or character vector for each instrument. |
| Number of instruments ( |
|
|
NoteThe interpretation of the | |
| European option: Bermuda option: Each row is the schedule for one option. If an
option has fewer than For an American option:
|
|
For an American option:
|
Data arguments are NINST
-by-1
vectors,
scalar, or empty. Fill in unspecified entries vectors with NaN
.
Only one data argument is required to create the instrument. The others
may be omitted or passed as empty matrices []
.
InstSet = instoptbnd(BondIndex,OptSpec,Strike,ExerciseDates)
creates a bond option, specified as a European or Bermuda option.
InstSet = instoptbnd(InstSet,BondIndex,OptSpec,Strike,ExerciseDates)
adds a bond option, specified as a European or Bermuda option, to
an existing instrument set.
InstSet = instoptbnd(InstSet,BondIndex,OptSpec,Strike,ExerciseDates,AmericanOpt)
specifies an American option if AmericanOpt
is
set to 1
. If AmericanOpt
is
not set to 1
, the function specifies a European
or Bermuda option.
[FieldList,ClassList,TypeString]
= instoptbnd
displays the classes.
FieldList
is a number of fields
(NFIELDS
-by-1
) cell array of character vectors
listing the name of each data field for this instrument type.
ClassList
is an NFIELDS
-by-1
cell
array of character vectors listing the data class of each field. The
class determines how arguments are parsed. Valid character vectors
are 'dble'
, 'date'
, and 'char'
.
TypeString
is a character vector specifying
the type of instrument added. For a bond option instrument, TypeString
= 'OptBond'
.