Class QuotePartsDef.CommonFields.Builder

  • Enclosing class:
    QuotePartsDef.CommonFields

    public static final class QuotePartsDef.CommonFields.Builder
    extends java.lang.Object
    • Method Detail

      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setQuoteID

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setQuoteID​(@NotNull
                                                                      @NotNull java.lang.String quoteID)
        Returns:
        Unique id for a price quote, used to determine which quote has been used for trade execution.
      • setInterestRate

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setInterestRate​(@NotNull
                                                                           @NotNull java.math.BigDecimal interestRate)
        Returns:
        Interest rate on the given PrincipalAmount.
      • setInterestRate

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setInterestRate​(@NotNull
                                                                           @NotNull java.lang.String interestRate)
        Returns:
        Interest rate on the given PrincipalAmount.
      • setInterestAmount

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setInterestAmount​(@NotNull
                                                                             @NotNull java.math.BigDecimal interestAmount)
        Returns:
        Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
      • setInterestAmount

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setInterestAmount​(@NotNull
                                                                             @NotNull java.lang.String interestAmount)
        Returns:
        Interest amount (specified in the provided Currency) calculated from the interest rate and principal amount
      • setPrincipalPlusInterest

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setPrincipalPlusInterest​(@NotNull
                                                                                    @NotNull java.math.BigDecimal principalPlusInterest)
        Returns:
        Composite amount between principal amount and interest amount.
      • setPrincipalPlusInterest

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setPrincipalPlusInterest​(@NotNull
                                                                                    @NotNull java.lang.String principalPlusInterest)
        Returns:
        Composite amount between principal amount and 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 java.lang.String overallTimeout)
        Returns:
        The amount in seconds in which the trade will expire.