Skip to main content
Atoti Market Risk relies on the date conversion services from the Common Library to convert pillar values into durations.

Maturity converter

The maturity converter service converts any pillar value into a duration, expressed in number of days, year fraction or a date relative to the current date. The interface of the bean is IMaturityConverter. It can be injected into any Atoti plugin that extends the IMaturityConverterAware interface. The interface provides the following services: Here are the parameters needed to make a conversion: The default implementation provided is SimpleMaturityConverter.

Tenor converter

The tenor converter transforms a pillar and an as-of date into the target date. The default implementation SimpleTenorConverter handles several pillar types:

Day count convention

The IDayCountConvention converts a pair of dates into a duration expressed in days or years. Several implementations are provided:

Business day calendar and convention

The IBusinessDayCalendar tells if a day is open or closed. The IBusinessDayConvention finds the matching business day from a given date. The common library provides: