- input
String that establishes if the price input corresponds to the
Internal Rate of Return (IRR) of the bond or the market price. Set
"rate"
for the IRR. Otherwise, "price"
.
- price
Numeric value of either market price or Internal Rate of Return (IRR) of a
given bond. Instead of IRR, can also be a rates vector that corresponds to coupon dates.
- maturity
Last day of the contract: YYYY-MM-DD.
Alternatively, it can be a numeric value that represents the duration of the contract in years.
- analysis.date
Date in which the asset is valued. By default, the
current date.
- coupon.rate
Coupon rate of the asset. Can be an unique numeric
value or a vector corresponding to each coupon payment date.
- principal
Notional amount for the asset.
- asset.type
String that determines the asset type to value. See also
'Details'.
- freq
Frequency of payments of a given asset in a year. For LIBOR and
IBR the default frequency is four (quarterly payments). TES has a default
frequency of one (annual payments).
- rate.type
(1) for discrete compounded discount rates and (0) for continuosly
compounded discount rates. By default rates are assumed to be discrete.
- spread
Decimal value of spread added to coupon payment rate. By
default, 0
.
- daycount
Day count convention. See also 'Details'.
- dirty
Numeric value to determine if the calculated price is dirty or
clean. To calculate dirty price, set dirty = 1
. Otherwise,
dirty = 0
.
- convention
String that establishes if the effective dates are
calculated using Following, Modified Following, Backward or Backward Following.
See also 'Details'.
- trade.date
The date on which the transaction occurs. It is used to calculate
maturity as a date, when given in years. Also required for non-trivial cases such as
bonds with long first coupon.
- coupon.schedule
String that establishes if a bond first coupon period is a long
first coupon or a short first coupon. On the contrary, establishes if last coupon period
is long last coupon or a short last coupon. See also 'Details'.