|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Local interface of DurationConvexity. This interface provides the same functionality as the DurationConvexity remote interface.
DurationConvexity| Method Summary | |
double |
bondPriceChange(double duration,
double convexity,
double yieldChange)
Method bondPriceChange(double, double, double) as defined in the DurationConvexity remote interface. |
double |
convexity(double yield,
double[] coupons,
Date evaluationDate,
Date[] dateOfCoupons,
double principleSum,
Date maturityDate,
BusinessCalendar businessCalendar)
Method convexity(double, double[], java.util.Date, java.util.Date[], double, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the DurationConvexity remote interface. |
double |
convexity(double yield,
double[] coupons,
double[] time2Coupons,
double principleSum,
double maturity)
Method convexity(double, double[], double[], double, double) as defined in the DurationConvexity remote interface. |
double |
duration(double yield,
double[] payments,
Date evaluationDate,
Date[] paymentDates,
double principleSum,
Date maturityDate,
BusinessCalendar businessCalendar)
Method duration(double, double[], java.util.Date, java.util.Date[], double, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the DurationConvexity remote interface. |
double |
duration(double yield,
double[] payments,
double[] time2Payments,
double principleSum,
double maturity)
Method duration(double, double[], double[], double, double) as defined in the DurationConvexity remote interface. |
double |
durationHedgeRatio(double futuresPrice,
double duration,
double forwardValue,
double durationPort)
Method durationHedgeRatio(double, double, double, double) as defined in the DurationConvexity remote interface. |
double |
durationOfPortfolio(double[] duration,
double[] weightOfBond)
Method durationOfPortfolio(double[], double[]) as defined in the DurationConvexity remote interface. |
double |
durationOfPortfolioValue(double[] duration,
double[] valueOfBond)
Method durationOfPortfolioValue(double[], double[]) as defined in the DurationConvexity remote interface. |
double |
percentagePriceChange(double deltaYield,
double duration)
Method percentagePriceChange(double, double) as defined in the DurationConvexity remote interface. |
double |
percentagePriceChange(double deltaYield,
double[] duration,
double[] valueOfBond)
Method percentagePriceChange(double, double[], double[]) as defined in the DurationConvexity remote interface. |
double |
percentagePriceChange(double duration,
double annualYield,
double deltaYield)
Method percentagePriceChange(double, double, double) as defined in the DurationConvexity remote interface. |
double |
percentagePriceChange(double duration,
double yield,
int periodsCompoundedOver,
double deltaYield)
Method percentagePriceChange(double, double, int, double) as defined in the DurationConvexity remote interface. |
double |
priceOfBond(double yield,
double[] coupons,
Date evaluationDate,
Date[] dateOfCoupons,
double principleSum,
Date maturityDate,
BusinessCalendar businessCalendar)
Method priceOfBond(double, double[], java.util.Date, java.util.Date[], double, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the DurationConvexity remote interface. |
double |
priceOfBond(double yield,
double[] coupons,
double[] time2Coupons,
double principleSum,
double maturity)
Method priceOfBond(double, double[], double[], double, double) as defined in the DurationConvexity remote interface. |
double[] |
weightOfBonds(double[] valueOfBond)
Method weightOfBonds(double[]) as defined in the DurationConvexity remote interface. |
| Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double priceOfBond(double yield,
double[] coupons,
Date evaluationDate,
Date[] dateOfCoupons,
double principleSum,
Date maturityDate,
BusinessCalendar businessCalendar)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
This method evaluates the price of a bond via the relationship between its yield and cash flows.
yield - the continuously compounded yield which the bond pays expressed in decimal format (i.e. 1 percent = 0.01)coupons - an array where the first term is the first coupon payment and the second term is the second coupon payment and so onprincipleSum - the principle sum of the bond which will be repaid at maturityevaluationDate - the date when the price of the bond is evaluated.dateOfCoupons - an array of dates where the first term corresponds to the date of the first coupon payment, the second term to the second coupon payment and so on...maturityDate - the date when the bond maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
DurationConvexityDemoExceptionDurationConvexity.priceOfBond(double, double[], java.util.Date, java.util.Date[], double, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double priceOfBond(double yield,
double[] coupons,
double[] time2Coupons,
double principleSum,
double maturity)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
This method evaluates the price of a bond via the relationship between its yield and cash flows.
yield - the continuously compounded yield which the bond pays expressed in decimal format (i.e. 1 percent = 0.01)coupons - an array where the first term is the first coupon payment and the second term is the second coupon payment and so ontime2Coupons - an array of doubles where the first element represents the time until the first coupon payment is made, the second the time until the second coupon payment is made and so onprincipleSum - the principle sum of the bond which will be repaid at maturitymaturity - the time in years until the bond matures
DurationConvexityDemoExceptionDurationConvexity.priceOfBond(double, double[], double[], double, double)
public double duration(double yield,
double[] payments,
Date evaluationDate,
Date[] paymentDates,
double principleSum,
Date maturityDate,
BusinessCalendar businessCalendar)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the duration of a bond with a continuous interest yield where the cash flows (or payments) made in terms of amount and time of payment are known.
yield - the continuous compounded yield paid by the bond expressed in decimal format (i.e. 1 percent = 0.01)payments - an array of doubles where the first element represents the first payment from the bond, the second the second payment and so on.principleSum - the principle sum paid by the bond at maturityevaluationDate - the date on which the duration of the bond is evaluatedpaymentDates - an array of dates where the first term corresponds to the first payment date and the second payment date corresponds to the second payment and so on...maturityDate - the date when the bond maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
DurationConvexityDemoExceptionDurationConvexity.duration(double, double[], java.util.Date, java.util.Date[], double, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double duration(double yield,
double[] payments,
double[] time2Payments,
double principleSum,
double maturity)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the duration of a bond with a continuous interest yield where the cash flows (or payments) made in terms of amount and time of payment are known.
yield - the continuous compounded yield paid by the bond expressed in decimal format (i.e. 1 percent = 0.01)payments - an array of doubles where the first element represents the first payment from the bond, the second the second payment and so on.time2Payments - an array of doubles where the first element represents the time in years until the first payment is made, the second the time in years until the second payment is made and so onprincipleSum - the principle sum paid by the bond at maturitymaturity - the time in years until the bond matures
DurationConvexityDemoExceptionDurationConvexity.duration(double, double[], double[], double, double)
public double percentagePriceChange(double deltaYield,
double duration)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Returns the percentage change of the bonds price by a small parallel shift of the interest rate curve which the bonds depends on. Note that the returned percentage change is expressed in decimal format (i.e. 1 percent = 0.01).
deltaYield - the small parallel shift (in absolute terms) of the interest rate curve. That is, if the implied 3 month yield is 3.5 percent, and the 6 month yield is 3.7 percent then a parallel shift of 0.1, would result in a 3 month yield of 3.6 percent and a 6 month yield of 3.8 percent.duration - the duration of the bond
DurationConvexityDemoExceptionDurationConvexity.percentagePriceChange(double, double)
public double[] weightOfBonds(double[] valueOfBond)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the weights of the individual bonds within a bond portfolio and returns the result as an array of weights where the n-th term of the array corresponds to the weight of the n-th member of the portfolio.
valueOfBond - an array where the first element corresponds to the value of the first bond within the portfolio and the second element corresponds to the value of the second bond and so on.
DurationConvexityDemoExceptionDurationConvexity.weightOfBonds(double[])
public double durationOfPortfolio(double[] duration,
double[] weightOfBond)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Returns the duration of a portfolio of bonds when the duration and weight of each bond within the portfolio is known.
duration - an array where the first term is the duration of the first element of the portfolio and second term is the duration of the second term and so on...weightOfBond - an array where the first element corresponds to the weight of the first element within the portfolio and the second term corresponds to the weight of the second element within the portfolio and so on...
DurationConvexityDemoExceptionweightOfBonds - Use this method to find the weights of the bonds within a portfolio,
duration - Use this method to find the duration of each member of the portfolio,
DurationConvexity.durationOfPortfolio(double[], double[])
public double durationOfPortfolioValue(double[] duration,
double[] valueOfBond)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Returns the duration (in monetary terms) of a bond portfolio when the duration and value of each bond within the portfolio is known.
valueOfBond - an array where the first term is the value of the first bond within the portfolio and the second term is the value of the second bond within the portfolio and on so...
DurationConvexityDemoExceptionduration - Use this method to find the duration of each member of the portfolio,
DurationConvexity.durationOfPortfolioValue(double[], double[])
public double percentagePriceChange(double deltaYield,
double[] duration,
double[] valueOfBond)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Return the percentage change in a bond portfolio's value for a small parallel shift of all the interest rate curves which the bonds within the portfolio depend on. The percentage change of the portfolio is returned in decimal format (i.e. 1 percent = 0.01).
deltaYield - the small parallel shift (in absolute terms) of the interest rate curve.duration - an array where the first value is the duration of the first bond within the portfolio and the second term is the duration of the second bond within the portfolio and so onvalueOfBond - an array where the first term corresponds to the value of the first bond within the portfolio and the second term corresponds to the weight of the second term within the portfolio and so on
DurationConvexityDemoExceptionduration - Use in order to evaluate the duration of each bond
within the portfolio.,
DurationConvexity.percentagePriceChange(double, double[], double[])
public double percentagePriceChange(double duration,
double annualYield,
double deltaYield)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the percentage price change in a bond portfolio's value when the (annual) interest rates (expressed in decimal format) experience a small parallel shift.
duration - the duration of the bond portfolioannualYield - the annual yield of the bond portfolio expressed in decimal format (i.e. 1 percent = 0.01)deltaYield - the small parallel shift in the bond portfolios yield, expressed in decimal format
DurationConvexityDemoExceptiondurationOfPortfolio - Use in order to evaluate the duration
of the portfolio.,
DurationConvexity.percentagePriceChange(double, double, double)
public double percentagePriceChange(double duration,
double yield,
int periodsCompoundedOver,
double deltaYield)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the percentage change in a bond portfolios value when interest rates experience a small parallel shift. Note, that here the yield is quoted with a compounding frequency of `periodsCompoundedOver' times a year.
duration - the duration of the bond portfolioyield - the yield of the bond portfolio compounded `periodsCompoundedOver' time a yearperiodsCompoundedOver - the number of time periods per annum which the yield is compounded overdeltaYield - the small parallel shift in the bond portfolios yield, expressed in decimal format
DurationConvexityDemoExceptionDurationConvexity.percentagePriceChange(double, double, int, double)
public double convexity(double yield,
double[] coupons,
Date evaluationDate,
Date[] dateOfCoupons,
double principleSum,
Date maturityDate,
BusinessCalendar businessCalendar)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the convexity of a bond.
yield - the continuously compounded yield of the bond portfolio expressed in decimal format (i.e. 1 percent = 0.01)coupons - an array of doubles where the first term corresponds to the amount paid by the next coupon paid by the bond, the second term corresponds to the coupon after that and so onprincipleSum - the principle sum paid at the maturity of the bondevaluationDate - the date when the convexity of the bond is evaluated.dateOfCoupons - an array of dates where the first term corresponds to the date of the first coupon payment and the second term corresponds to the date of second coupon payment and so on...maturityDate - the date when the bond maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
DurationConvexityDemoExceptionDurationConvexity.convexity(double, double[], java.util.Date, java.util.Date[], double, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double convexity(double yield,
double[] coupons,
double[] time2Coupons,
double principleSum,
double maturity)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the convexity of a bond.
yield - the continuously compounded yield of the bond portfolio expressed in decimal format (i.e. 1 percent = 0.01)coupons - an array of doubles where the first term corresponds to the amount paid by the next coupon paid by the bond, the second term corresponds to the coupon after that and so ontime2Coupons - an array where the first element is the time in years until the first coupon payment, the second term is the time (in years) until the second coupon payment and so onprincipleSum - the principle sum paid at the maturity of the bondmaturity - the time (in years) until the bond matures
DurationConvexityDemoExceptionDurationConvexity.convexity(double, double[], double[], double, double)
public double bondPriceChange(double duration,
double convexity,
double yieldChange)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Estimates the percentage change of the bond portfolio's value for a given (absolute) change of the yield. This approach using the duration and convexity to estimate the change of a bond portfolios value to changes of the yield is more accurate than duration only approach.
duration - the duration of the bond portfolioconvexity - the convexity of the bond portfolioyieldChange - the change (in absolute terms) in the yield of the bond portfolio
DurationConvexityDemoExceptionconvexity,
duration,
DurationConvexity.bondPriceChange(double, double, double)
public double durationHedgeRatio(double futuresPrice,
double duration,
double forwardValue,
double durationPort)
throws DurationConvexityDemoException
Description copied from the DurationConvexity interface:
Evaluates the duration-hedge ratio of an interest rate dependent asset such as a bond portfolio or a money market security. The hedge ratio returns the number if relevant interest rate future contracts which need to be brought (or sold) in order to hedge against price changes resulting from small parallel shifts of the interest rate curve.
futuresPrice - the contract price of the interest rate futures contractduration - the duration of the asset underlying the futures contract at the maturity of the futures contractforwardValue - the forward value of the portfolio being hedged at the maturity of the hedgedurationPort - the duration of the portfolio at the maturity of the hedge
DurationConvexityDemoExceptionDurationConvexity.durationHedgeRatio(double, double, double, double)
|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||