Validating Settlement Date
The ValidateSettlementDate API checks whether a given settlement date is valid. It first ensures the date is not in the past, not after the cut-off time, and is a business day. If any of these checks fail, it returns an error.
If the date passes, the API calculates the corresponding execution date by subtracting the settlement lead days and validating that this execution date is also not in the past or after the cut-off. If the execution and settlement dates are valid, then they are returned to the requester. Otherwise, a failure message is returned.