Class SwapPointQuoteSubjectInfo

java.lang.Object
com.caplin.motif.fx.rates.swap.SwapPointQuoteSubjectInfo
All Implemented Interfaces:
SubjectInfo

public class SwapPointQuoteSubjectInfo extends Object implements SubjectInfo
  • Constructor Details

    • SwapPointQuoteSubjectInfo

      public SwapPointQuoteSubjectInfo(String subject, String username, String toboUser, String currencyPair, String nearTenorOrDate, String farTenorOrDate, String amount, String dealtCurrency)
      Constructs an SwapPointQuoteSubjectInfo based on the provided subscription parameters
      Parameters:
      subject - The full requested subject
      username - The requesting user
      toboUser - The TOBO user
      currencyPair - The requested currency pair
      nearTenorOrDate - The requested near tenor or date string (in yyyyMMdd format)
      farTenorOrDate - The requested far tenor or date string (in yyyyMMdd format)
      amount - The requested amount
      dealtCurrency - The requested dealt currency
  • Method Details

    • getCurrencyPair

      public String getCurrencyPair()
      The currency pair for the subscription
      Returns:
      The currency pair in the format <base currency><term currency>. For example, if the base currency is "GBP" and the term currency is "USD" this method will return the string "GBPUSD".
    • getNearBrokenDate

      public LocalDate getNearBrokenDate()
      Returns the near broken date for the subscription, if the request is for a broken date. Returns null otherwise.
    • getNearTenor

      public String getNearTenor()
      Returns the near tenor for the subscription.
    • getFarBrokenDate

      public LocalDate getFarBrokenDate()
      Returns the far broken date for the subscription, if the request is for a broken date. Returns null otherwise.
    • getFarTenor

      public String getFarTenor()
      Returns the far tenor for the subscription.
    • getAmount

      public String getAmount()
      Returns the amount for the subscription
    • getDealtCurrency

      public String getDealtCurrency()
      Returns the dealt currency for the subscription
    • getSubject

      public String getSubject()
      Returns the subject for the subscription
      Specified by:
      getSubject in interface SubjectInfo
      Returns:
      The original subject.
    • getUsername

      public String getUsername()
      Returns the username for the subscription
    • getToboUser

      public String getToboUser()
      Returns the TOBO user for the subscription
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object