Uses of Class
com.quantfinlib.rates.DiscountCurve
Packages that use DiscountCurve
Package
Description
Credit curves, CDS pricing and credit spreads.
Fixed income: curves, bonds, swaps, day counts and calendars, with
market conventions.
-
Uses of DiscountCurve in com.quantfinlib.credit
Methods in com.quantfinlib.credit with parameters of type DiscountCurveModifier and TypeMethodDescriptionMultiCurrencyExposureSimulator.Curve.of(DiscountCurve c) Adapter for a 2.1 multi-curveDiscountCurve(time in ACT/365F years). -
Uses of DiscountCurve in com.quantfinlib.rates
Methods in com.quantfinlib.rates that return DiscountCurveModifier and TypeMethodDescriptionstatic DiscountCurveMultiCurveBootstrap.bootstrap(LocalDate valuationDate, List<CurveInstrument> instruments, CurveInterpolation interpolation) A self-discounting curve (OIS: deposits on the overnight rate and OIS swaps).static DiscountCurveMultiCurveBootstrap.bootstrapProjection(LocalDate valuationDate, List<CurveInstrument> instruments, CurveInterpolation interpolation, DiscountCurve discount) A projection curve, discounting on the fixeddiscountcurve.CurvePair.discount()Returns the value of thediscountrecord component.static DiscountCurveDiscountCurve.of(LocalDate valuationDate, double[] times, double[] discountFactors, CurveInterpolation interpolation) A curve from pillar times (ACT/365F years aftervaluationDate, strictly increasing, positive) and their discount factors (positive).DiscountCurve.parallelShift(double shift) A copy with every pillar's continuously compounded zero rate shifted byshift(a parallel shift of the pillar zero curve).CurvePair.projection()Returns the value of theprojectionrecord component.Methods in com.quantfinlib.rates with parameters of type DiscountCurveModifier and TypeMethodDescriptiondoubleFixedLeg.annuity(DiscountCurve discount) Annuity per unit notional and unit rate, over the coupons not yet paid.doubleInterestRateSwap.annuity(DiscountCurve discount) Fixed-leg annuity on the discount curve, per unit notional and unit rate.doubleOisSwap.annuity(DiscountCurve discount) sum tau_i P(t_i)per unit notional.doubleVanillaSwap.annuity(DiscountCurve discount) Fixed-leg annuity per unit notional.static DiscountCurveMultiCurveBootstrap.bootstrapProjection(LocalDate valuationDate, List<CurveInstrument> instruments, CurveInterpolation interpolation, DiscountCurve discount) A projection curve, discounting on the fixeddiscountcurve.static doubleRatesOptions.capFloor(DiscountCurve discount, DiscountCurve projection, LocalDate start, LocalDate end, int paymentsPerYear, DayCount dayCount, BusinessCalendar calendar, BusinessCalendar.Roll roll, double strike, double vol, boolean cap, RatesOptions.VolModel model) Cap (or floor) on the projection index over the adjusted schedule fromstarttoend: caplet j paystau_j max(F_j - K, 0)att_j,F_jthe projection forward on its accrual period, fixing at the period start, discounted ondiscount.doubleOvernightLeg.compoundedRate(LocalDate accrualStart, LocalDate accrualEnd, DiscountCurve projection) The compounded overnight rate (no spread) for an accrual period.doubleRateFuture.convexityAdjustment(DiscountCurve curve) This future's adjustment on the curve's time axis.doubleFloatLeg.couponRate(LegConvention.Period period, DiscountCurve projection) The coupon rate (index rate plus spread) of one period, from published fixings where they exist and the projection curve otherwise.doubleOvernightLeg.couponRate(LegConvention.Period period, DiscountCurve projection) doubleTermRateLeg.couponRate(LegConvention.Period period, DiscountCurve projection) doubleInterestRateSwap.floatLegPv(DiscountCurve discount, DiscountCurve projection) PV of the floating leg per unit notional.doubleVanillaSwap.floatLegPv(DiscountCurve discount, DiscountCurve projection) Floating-leg PV per unit notional.doubleCurveInstrument.impliedQuote(DiscountCurve discount, DiscountCurve projection) The quote implied by the curves, in the units ofCurveInstrument.quote().doubleDeposit.impliedQuote(DiscountCurve discount, DiscountCurve projection) doubleFra.impliedQuote(DiscountCurve discount, DiscountCurve projection) doubleInterestRateSwap.impliedQuote(DiscountCurve discount, DiscountCurve projection) doubleOisSwap.impliedQuote(DiscountCurve discount, DiscountCurve projection) doubleRateFuture.impliedQuote(DiscountCurve discount, DiscountCurve projection) doubleInterestRateSwap.parRate(DiscountCurve discount, DiscountCurve projection) Par fixed rate.doubleOisSwap.parRate(DiscountCurve discount) The par fixed rate ondiscount.doubleVanillaSwap.parRate(DiscountCurve discount, DiscountCurve projection) Par fixed rate.doubleInterestRateSwap.payerPv(DiscountCurve discount, DiscountCurve projection) PV per unit notional of payingInterestRateSwap.fixedRate()and receiving floating.doubleOisSwap.payerPv(DiscountCurve discount) PV per unit notional of paying fixed, receiving the compounded overnight rate.doubleVanillaSwap.payerPv(DiscountCurve discount, DiscountCurve projection) PV per unit notional of paying fixed and receiving floating.doubleFixedLeg.pv(DiscountCurve discount) PV per unit notional of the unpaid fixed coupons.default doubleFloatLeg.pv(DiscountCurve discount, DiscountCurve projection) PV per unit notional of the coupons not yet paid (payment date after the discount curve's valuation date).doubleVanillaSwap.receiverPv(DiscountCurve discount, DiscountCurve projection) PV per unit notional of receiving fixed and paying floating.static doubleRatesOptions.swaption(DiscountCurve discount, DiscountCurve projection, InterestRateSwap underlying, double strike, double vol, boolean payer, RatesOptions.VolModel model) Swaption onunderlying(its fixed rate is ignored;strikeis used), expiring at the swap start:A_d * model(F, K)withFthe multi-curve par rate andA_dthe OIS annuity.Method parameters in com.quantfinlib.rates with type arguments of type DiscountCurveModifier and TypeMethodDescriptionstatic double[]BootstrapJacobian.bucketedDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv) Per-quote DV01 with the same contract and ordering asMultiCurveRisk.bucketedDv01(LocalDate, List, List, CurveInterpolation, ToDoubleBiFunction): the PV change for +1bp in each quote, OIS quotes first, by the implicit-function Jacobian.static double[]BootstrapJacobian.bucketedDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv) Per-quote DV01 with the same contract and ordering asMultiCurveRisk.bucketedDv01(LocalDate, List, List, CurveInterpolation, ToDoubleBiFunction): the PV change for +1bp in each quote, OIS quotes first, by the implicit-function Jacobian.static double[]MultiCurveRisk.bucketedDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv) Per-quote DV01, OIS quotes first then projection quotes.static double[]MultiCurveRisk.bucketedDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv) Per-quote DV01, OIS quotes first then projection quotes.static double[]MultiCurveRisk.keyRateDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv, double[] keyTenorsYears) Key-rate DV01s atkeyTenorsYears(strictly increasing, ACT/365F years); one value per key.static double[]MultiCurveRisk.keyRateDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv, double[] keyTenorsYears) Key-rate DV01s atkeyTenorsYears(strictly increasing, ACT/365F years); one value per key.static doubleMultiCurveRisk.parallelDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv) DV01 for a +1bp move in every quote.static doubleMultiCurveRisk.parallelDv01(LocalDate valuationDate, List<CurveInstrument> oisInstruments, List<CurveInstrument> projectionInstruments, CurveInterpolation interpolation, ToDoubleBiFunction<DiscountCurve, DiscountCurve> pv) DV01 for a +1bp move in every quote.Constructors in com.quantfinlib.rates with parameters of type DiscountCurveModifierConstructorDescriptionCurvePair(DiscountCurve discount, DiscountCurve projection) Creates an instance of aCurvePairrecord class.