Interface SettlementFixingDateProvider<S extends SettlementDateSubjectInfo>


public interface SettlementFixingDateProvider<S extends SettlementDateSubjectInfo>
  • Method Summary

    Modifier and Type
    Method
    Description
    getCaption(S subjectInfo)
    Returns the caption for the currency pair provided in the subject info.
    void
    getFixingDatesForSettlementDates(S subjectInfo, Set<String> settlementDates, Callback<Map<String,String>> callback)
    Called by the API to provide fixing dates for the settlement dates.
    default 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 Details

    • getFixingDatesForSettlementDates

      void getFixingDatesForSettlementDates(S subjectInfo, Set<String> settlementDates, Callback<Map<String,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

      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 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