Daml.Finance.Data.Reference.HolidayCalendar

Templates

template Factory

Implementation of the corresponding HolidayCalendar Factory.

Signatory: provider

Field Type Description
provider Party The factory’s provider.
observers PartiesMap The factory’s observers.
  • Choice Archive

    Controller: provider

    Returns: ()

    (no fields)

  • interface instance F for Factory

  • interface instance I for Factory

template HolidayCalendar

Holiday calendar of an entity (typically an exchange or a currency). It is maintained by a reference data provider.

Signatory: provider

Field Type Description
calendar HolidayCalendarData Holiday Calendar Data used to define holidays.
observers PartiesMap Observers.
provider Party The party maintaining the HolidayCalendar.

Data Types

data HolidayCalendarKey

Key used to look up the holiday calendar of an entity, as defined by a reference data provider.

HolidayCalendarKey

Field Type Description
provider Party The party maintaining the HolidayCalendar.
id Text A textual label identifying the calendar (e.g. "NYSE" for the New York Stock Exchange holiday calendar).

instance Eq HolidayCalendarKey

instance Show HolidayCalendarKey

instance HasExerciseByKey HolidayCalendar HolidayCalendarKey GetCalendar HolidayCalendarData

instance HasExerciseByKey HolidayCalendar HolidayCalendarKey Archive ()

instance HasFetchByKey HolidayCalendar HolidayCalendarKey

instance HasFromAnyContractKey HolidayCalendar HolidayCalendarKey

instance HasKey HolidayCalendar HolidayCalendarKey

instance HasLookupByKey HolidayCalendar HolidayCalendarKey

instance HasMaintainer HolidayCalendar HolidayCalendarKey

instance HasToAnyContractKey HolidayCalendar HolidayCalendarKey

Functions

getHolidayCalendars

: Party -> Party -> [Text] -> Update [HolidayCalendarData]

Retrieve holiday calendar(s) from the ledger.

rollSchedule

: ([Text] -> Update [HolidayCalendarData]) -> PeriodicSchedule -> [Text] -> Update (Schedule, [HolidayCalendarData])

Retrieve holiday calendar(s) from the ledger and roll out a schedule. Returns the rolled schedule and the required calendars.