Interface NdfDateProvider<T extends TenorDateSubjectInfo>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.String getCaption​(T subjectInfo)
      Returns the caption for the currency pair provided in the subject info.
      void getFixingDatesForTenorDates​(T subjectInfo, java.util.Map<Tenor,​java.lang.String> tenorDates, Callback<java.util.Map<Tenor,​java.lang.String>> callback)
      Called by the API to provide fixing dates for tenors.
      default void getFixingSources​(T subjectInfo, Callback<java.util.List<java.lang.String>> callback)
      Called by the API to provide fixing sources.
      void getMinimumTenorDate​(T subjectInfo, Callback<java.lang.String> callback)
      Returns the earliest allowed tenor date for the given information.
      default void getSettlementCurrencies​(T subjectInfo, Callback<java.util.List<java.lang.String>> callback)
      Called by the API to provide settlement currencies.
      boolean isNonDeliverable​(T subjectInfo)
      Return true or false if the subject info, which also contains the currency pair, has fixing dates for that currency pair's tenor dates.
    • Method Detail

      • getFixingDatesForTenorDates

        void getFixingDatesForTenorDates​(T subjectInfo,
                                         java.util.Map<Tenor,​java.lang.String> tenorDates,
                                         Callback<java.util.Map<Tenor,​java.lang.String>> callback)
        Called by the API to provide fixing dates for tenors. Use the callback to provide a map of tenors to fixing dates.
        Parameters:
        subjectInfo - The subject info for the Tenor Dates request.
        tenorDates - The map of tenors to dates, provided earlier.
        callback - The callback, which should be called with a map of tenors to fixing dates.
      • getFixingSources

        default void getFixingSources​(T subjectInfo,
                                      Callback<java.util.List<java.lang.String>> callback)
        Called by the API to provide fixing sources.
        Parameters:
        subjectInfo - The subject info for the request.
        callback - The callback, which should be called with a list of fixing sources.
      • getSettlementCurrencies

        default void getSettlementCurrencies​(T subjectInfo,
                                             Callback<java.util.List<java.lang.String>> callback)
        Called by the API to provide settlement currencies.
        Parameters:
        subjectInfo - The subject info for the request.
        callback - The callback, which should be called with a list of settlement currencies.
      • isNonDeliverable

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

        void getMinimumTenorDate​(T subjectInfo,
                                 Callback<java.lang.String> callback)
        Returns the earliest allowed tenor date for the given information.
        Parameters:
        subjectInfo - The subject info for a tenor date request.
        callback - The callback to be called with the minimum tenor date. The date is in yyyyMMdd format
      • getCaption

        java.lang.String getCaption​(T 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 tenor request.
        Returns:
        The caption for the currency pair provided in the subject info.