Interface SettlementFixingDateProvider<S extends SettlementDateSubjectInfo>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.String getCaption​(S subjectInfo)
      Returns the caption for the currency pair provided in the subject info.
      void getFixingDatesForSettlementDates​(S subjectInfo, java.util.Set<java.lang.String> settlementDates, Callback<java.util.Map<java.lang.String,​java.lang.String>> callback)
      Called by the API to provide fixing dates for the settlement dates.
      default java.lang.String getForwardType​(S subjectInfo)
      Returns the forward type (STANDARD or NDF) for the given subject
      boolean hasFixingDates​(S subjectInfo)
      Return true or false if the subject info, which also contains the currency pair, has fixing dates for that currency pair's settlement dates.
    • Method Detail

      • getFixingDatesForSettlementDates

        void getFixingDatesForSettlementDates​(S subjectInfo,
                                              java.util.Set<java.lang.String> settlementDates,
                                              Callback<java.util.Map<java.lang.String,​java.lang.String>> callback)
        Called by the API to provide fixing dates for the settlement dates. Use the callback to provide a map of settlement dates to fixing dates.
        Parameters:
        subjectInfo - The subject info for the Settlement Dates request.
        settlementDates - The set of settlement dates, provided earlier.
        callback - The callback which should be called with a map of settlement dates to fixing dates.
      • hasFixingDates

        boolean hasFixingDates​(S subjectInfo)
        Return true or false if the subject info, which also contains the currency pair, has fixing dates for that currency pair's settlement dates.
        Parameters:
        subjectInfo - The subject info for a settlement date request.
        Returns:
        True if the there are fixing dates, False if there are no fixing dates.
      • getCaption

        java.lang.String getCaption​(S subjectInfo)
        Returns the caption for the currency pair provided in the subject info. The caption is the text that is to be displayed alongside currency pair
        Parameters:
        subjectInfo - The subject info for the settlement date request.
        Returns:
        The caption for the currency pair provided in the subject info.
      • getForwardType

        default java.lang.String getForwardType​(S subjectInfo)
        Returns the forward type (STANDARD or NDF) for the given subject
        Parameters:
        subjectInfo -
        Returns:
        The forward type that should be set on the message for the given subject