Uses of Enum Class
com.quantfinlib.rates.DayCount
Packages that use DayCount
Package
Description
FX market conventions and instruments, from spot dates to NDFs.
Fixed income: curves, bonds, swaps, day counts and calendars, with
market conventions.
-
Uses of DayCount in com.quantfinlib.fx
Methods in com.quantfinlib.fx with parameters of type DayCountModifier and TypeMethodDescriptiondoubleSwapPointsCurve.impliedCarry(LocalDate valueDate, DayCount dayCount) SwapPointsCurve.impliedCarry(LocalDate)with tau measured in the given day count. -
Uses of DayCount in com.quantfinlib.rates
Subclasses with type arguments of type DayCount in com.quantfinlib.ratesModifier and TypeClassDescriptionenumDay-count conventions: the year fraction between two dates as real term sheets define it — because finance never agreed on how long a year is, and the disagreement is worth real money.Methods in com.quantfinlib.rates that return DayCountModifier and TypeMethodDescriptionDeposit.dayCount()Returns the value of thedayCountrecord component.Fra.dayCount()Returns the value of thedayCountrecord component.LegConvention.dayCount()Returns the value of thedayCountrecord component.OisSwap.dayCount()Returns the value of thedayCountrecord component.RateFuture.dayCount()Returns the value of thedayCountrecord component.InterestRateSwap.fixedDayCount()Returns the value of thefixedDayCountrecord component.InterestRateSwap.floatDayCount()Returns the value of thefloatDayCountrecord component.static DayCountReturns the enum constant of this class with the specified name.static DayCount[]DayCount.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.quantfinlib.rates with parameters of type DayCountModifier and TypeMethodDescriptionstatic doubleBondPricer.accruedInterest(double face, double couponRate, int frequency, LocalDate settlement, LocalDate maturity, DayCount dayCount) static doubleBondPricer.accruedInterest(double face, double couponRate, int frequency, LocalDate settlement, LocalDate maturity, DayCount dayCount, boolean endOfMonth) Accrued interest at settlement: the current period's coupon times the elapsed fraction (ACT/ACT ICMA: actual days over actual days in the period; 30/360 family: 30/360 days over 360/f).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.static doubleBondPricer.cleanPrice(double face, double couponRate, int frequency, LocalDate settlement, LocalDate maturity, double yield, DayCount dayCount) static doubleBondPricer.cleanPrice(double face, double couponRate, int frequency, LocalDate settlement, LocalDate maturity, double yield, DayCount dayCount, boolean endOfMonth) Clean price = dirty price minus accrued interest.static doubleBondPricer.dirtyPrice(double face, double couponRate, int frequency, LocalDate settlement, LocalDate maturity, double yield, DayCount dayCount) static doubleBondPricer.dirtyPrice(double face, double couponRate, int frequency, LocalDate settlement, LocalDate maturity, double yield, DayCount dayCount, boolean endOfMonth) Dirty price perfacefrom a yield, street convention (the formula behind the SIFMA/Bloomberg "street" yield and Excel's price):doubleDiscountCurve.forwardRate(LocalDate start, LocalDate end, DayCount dayCount) Simple forward(P(s)/P(e) - 1)/tauwithtaufromdayCount.static LegConventionLegConvention.of(int paymentsPerYear, DayCount dayCount, BusinessCalendar calendar, BusinessCalendar.Roll roll) A convention with a short front stub, no end-of-month rule and no payment lag.static RateFutureRateFuture.ofPrice(LocalDate start, LocalDate end, double price, DayCount dayCount, double meanReversion, double sigma) From an exchange price,rate = (100 - price)/100.static doubleBondPricer.yieldFromCleanPrice(double cleanPrice, double face, double couponRate, int frequency, LocalDate settlement, LocalDate maturity, DayCount dayCount, boolean endOfMonth) Street-convention yield from a clean price (inverse ofBondPricer.cleanPrice(double, double, int, java.time.LocalDate, java.time.LocalDate, double, DayCount, boolean)), by bisection on [−90%, 1000%] to full double precision.Constructors in com.quantfinlib.rates with parameters of type DayCountModifierConstructorDescriptionCreates an instance of aDepositrecord class.Creates an instance of aFrarecord class.InterestRateSwap(LocalDate start, LocalDate end, double fixedRate, int fixedPerYear, DayCount fixedDayCount, int floatPerYear, DayCount floatDayCount, BusinessCalendar calendar, BusinessCalendar.Roll roll) Creates an instance of aInterestRateSwaprecord class.LegConvention(int paymentsPerYear, DayCount dayCount, BusinessCalendar calendar, BusinessCalendar.Roll roll, BusinessCalendar.StubType stub, boolean endOfMonth, int paymentLagDays) Validates the fields.OisSwap(LocalDate start, LocalDate end, double fixedRate, int paymentsPerYear, DayCount dayCount, BusinessCalendar calendar, BusinessCalendar.Roll roll) Creates an instance of aOisSwaprecord class.RateFuture(LocalDate start, LocalDate end, double rate, DayCount dayCount, double meanReversion, double sigma) Creates an instance of aRateFuturerecord class.