Class QuotePartsDef.CommonFields.Builder

java.lang.Object
com.caplin.generated.motif.mm.rates.QuotePartsDef.CommonFields.Builder
Enclosing class:
QuotePartsDef.CommonFields

public static final class QuotePartsDef.CommonFields.Builder extends Object
  • Method Details

    • addField

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
    • build

      @NotNull public @NotNull QuotePartsDef.CommonFields build()
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • setLoanQuoteID

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanQuoteID(@NotNull @NotNull String loanQuoteID)
      Returns:
      Unique id for a loan quote, used to determine which quote has been used for trade execution.
    • setDepositQuoteID

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositQuoteID(@NotNull @NotNull String depositQuoteID)
      Returns:
      Unique id for a deposit quote, used to determine which quote has been used for trade execution.
    • setLoanInterestRate

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestRate(@NotNull @NotNull BigDecimal loanInterestRate)
      Returns:
      Interest rate on loaning the given PrincipalAmount.
    • setLoanInterestRate

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestRate(@NotNull @NotNull String loanInterestRate)
      Returns:
      Interest rate on loaning the given PrincipalAmount.
    • setInterestRateDPS

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestRateDPS(@NotNull @NotNull BigDecimal interestRateDPS)
      Returns:
      The precision for a specified InterestRate.
    • setInterestRateDPS

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestRateDPS(@NotNull @NotNull String interestRateDPS)
      Returns:
      The precision for a specified InterestRate.
    • setDepositInterestRate

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestRate(@NotNull @NotNull BigDecimal depositInterestRate)
      Returns:
      Interest rate on depositing the given PrincipalAmount.
    • setDepositInterestRate

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestRate(@NotNull @NotNull String depositInterestRate)
      Returns:
      Interest rate on depositing the given PrincipalAmount.
    • setDepositClientInterestRate

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositClientInterestRate(@NotNull @NotNull BigDecimal depositClientInterestRate)
      Parameters:
      depositClientInterestRate - e.g. 5.04
      Returns:
      Client interest rate on depositing the given PrincipalAmount.
    • setDepositClientInterestRate

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositClientInterestRate(@NotNull @NotNull String depositClientInterestRate)
      Parameters:
      depositClientInterestRate - e.g. 5.04
      Returns:
      Client interest rate on depositing the given PrincipalAmount.
    • setLoanInterestAmount

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestAmount(@NotNull @NotNull BigDecimal loanInterestAmount)
      Returns:
      Interest amount (specified in the provided Currency) calculated from the loan interest rate and principal amount
    • setLoanInterestAmount

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestAmount(@NotNull @NotNull String loanInterestAmount)
      Returns:
      Interest amount (specified in the provided Currency) calculated from the loan interest rate and principal amount
    • setDepositInterestAmount

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestAmount(@NotNull @NotNull BigDecimal depositInterestAmount)
      Returns:
      Interest amount (specified in the provided Currency) calculated from the deposit interest rate and principal amount
    • setDepositInterestAmount

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositInterestAmount(@NotNull @NotNull String depositInterestAmount)
      Returns:
      Interest amount (specified in the provided Currency) calculated from the deposit interest rate and principal amount
    • setLoanPrincipalPlusInterest

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanPrincipalPlusInterest(@NotNull @NotNull BigDecimal loanPrincipalPlusInterest)
      Returns:
      Composite amount between principal amount and loan interest amount.
    • setLoanPrincipalPlusInterest

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setLoanPrincipalPlusInterest(@NotNull @NotNull String loanPrincipalPlusInterest)
      Returns:
      Composite amount between principal amount and loan interest amount.
    • setDepositPrincipalPlusInterest

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositPrincipalPlusInterest(@NotNull @NotNull BigDecimal depositPrincipalPlusInterest)
      Returns:
      Composite amount between principal amount and deposit interest amount.
    • setDepositPrincipalPlusInterest

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setDepositPrincipalPlusInterest(@NotNull @NotNull String depositPrincipalPlusInterest)
      Returns:
      Composite amount between principal amount and deposit interest amount.
    • setOverallTimeout

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setOverallTimeout(int overallTimeout)
      Returns:
      The amount in seconds in which the trade will expire.
    • setOverallTimeout

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setOverallTimeout(@NotNull @NotNull String overallTimeout)
      Returns:
      The amount in seconds in which the trade will expire.
    • setRemainingTimeOutMillis

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setRemainingTimeOutMillis(int remainingTimeOutMillis)
      Returns:
      The number of milliseconds remaining of the OverallTimeOut before this stream is timed out. This is not present for standard price updates.
    • setRemainingTimeOutMillis

      @NotNull public @NotNull QuotePartsDef.CommonFields.Builder setRemainingTimeOutMillis(@NotNull @NotNull String remainingTimeOutMillis)
      Returns:
      The number of milliseconds remaining of the OverallTimeOut before this stream is timed out. This is not present for standard price updates.