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

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setLoanQuoteID​(@NotNull
                                                                          @NotNull java.lang.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 java.lang.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 java.math.BigDecimal loanInterestRate)
        Returns:
        Interest rate on loaning the given PrincipalAmount.
      • setLoanInterestRate

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

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

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

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

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

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setLoanInterestAmount​(@NotNull
                                                                                 @NotNull java.math.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 java.lang.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 java.math.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 java.lang.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 java.math.BigDecimal loanPrincipalPlusInterest)
        Returns:
        Composite amount between principal amount and loan interest amount.
      • setLoanPrincipalPlusInterest

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

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

        @NotNull
        public @NotNull QuotePartsDef.CommonFields.Builder setDepositPrincipalPlusInterest​(@NotNull
                                                                                           @NotNull java.lang.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 java.lang.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 java.lang.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.