webcab.lib.finance.pricing.contracts.standard
Class CouponBondOption
java.lang.Object
|
+--webcab.lib.finance.pricing.contracts.GeneralContractCommon
|
+--webcab.lib.finance.pricing.contracts.FixedExchangeMomentsContractCommon
|
+--webcab.lib.finance.pricing.contracts.FixedExchangeMarkovContractCommon
|
+--webcab.lib.finance.pricing.core.contracts.RegularPayoffContractCommon
|
+--webcab.lib.finance.pricing.contracts.standard.VanillaOption
|
+--webcab.lib.finance.pricing.contracts.standard.CouponBondOption
- All Implemented Interfaces:
- FixedExchangeMarkovContract, FixedExchangeMomentsContract, GeneralContract, RegularPayoffContract, Serializable
- public class CouponBondOption
- extends VanillaOption
- implements RegularPayoffContract
Implements an option on a coupon paying (aka coupon-bearing) bond.
- See Also:
- Serialized Form
|
Constructor Summary |
CouponBondOption(int type,
double maturity,
double strike,
double amount,
boolean isAmerican,
Pricer underlyingPricer,
double principal,
double firstCouponDate,
double couponInterest,
double couponPeriod,
double expiry)
This method implements an option on a coupon paying (aka coupon-bearing) bond. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CouponBondOption
public CouponBondOption(int type,
double maturity,
double strike,
double amount,
boolean isAmerican,
Pricer underlyingPricer,
double principal,
double firstCouponDate,
double couponInterest,
double couponPeriod,
double expiry)
throws InvalidParametersException
- This method implements an option on a coupon paying (aka coupon-bearing) bond.
- Parameters:
type - either CALL or PUT, indicatng whether the option is a call or a put optionmaturity - the maturity of the option. Please note that the maturity of the option
should be after the maturity of the bondstrike - the strike price of the optionamount - the number of zero coupon bonds bouhgt (if type == CALL) or
sold (if type == PUT)isAmerican - specifies if the buyer can exercise the option earlier (American style option).underlyingPricer - the pricer that will be used to evaluate the bondprincipal - the amount paid at expiry by the bondfirstCouponDate - the time when the first coupon is paidcouponInterest - the fraction of the principal paid at each coupon datecouponPeriod - the interval between two coupon paymentsexpiry - the moment when the principal is paid (maturity of the bond)
- Throws:
InvalidParametersException