Class SmartDerivativeContractScheduleGenerator
java.lang.Object
net.finmath.smartcontract.contract.SmartDerivativeContractScheduleGenerator
Generates schedules for smart derivative contracts.
The schedule consists of settlement, account access and margin checks.
- Author:
- Christian Fries
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Simple POJO implementation ofSmartDerivativeContractSchedule.EventTimes
.static class
Simple list based implementation ofSmartDerivativeContractSchedule
. -
Method Summary
Modifier and TypeMethodDescriptiongetScheduleForBusinessDays
(String calendar, LocalDate startDate, LocalDate maturity, LocalTime settlementTime, Duration accountAccessAllowedDuration) Create a daily event schedule, where accountAccessStart is one minute after settlementTime, accountAccessEnd is accountAccessAllowedDuration after accountAccessStart, marginCheckTime is one minute after accountAccessEnd.getScheduleForBusinessDays
(String calendar, LocalDate startDate, LocalDate maturity, LocalTime settlementTime, LocalTime accountAccessAllowedStartTime, Duration accountAccessAllowedDuration, LocalTime marginCheckTime)
-
Method Details
-
getScheduleForBusinessDays
public static SmartDerivativeContractSchedule getScheduleForBusinessDays(String calendar, LocalDate startDate, LocalDate maturity, LocalTime settlementTime, Duration accountAccessAllowedDuration) Create a daily event schedule, where accountAccessStart is one minute after settlementTime, accountAccessEnd is accountAccessAllowedDuration after accountAccessStart, marginCheckTime is one minute after accountAccessEnd.- Parameters:
calendar
- A businessday calendar (e.g.: TARGET2)startDate
- The start date.maturity
- The maturity date.settlementTime
- The settlement time.accountAccessAllowedDuration
- The duration for account adjustment after settlement.- Returns:
- A new schedule corresponding to the given meta data.
-
getScheduleForBusinessDays
-