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 Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
-
build
@NotNull public @NotNull QuotePartsDef.CommonFields build()
-
setQuoteID
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setQuoteID(@NotNull @NotNull 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 BigDecimal interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestRate
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestRate(@NotNull @NotNull String interestRate)
- Returns:
- Interest rate on the given PrincipalAmount.
-
setInterestAmount
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setInterestAmount(@NotNull @NotNull 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 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 BigDecimal principalPlusInterest)
- Returns:
- Composite amount between principal amount and interest amount.
-
setPrincipalPlusInterest
@NotNull public @NotNull QuotePartsDef.CommonFields.Builder setPrincipalPlusInterest(@NotNull @NotNull 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 String overallTimeout)
- Returns:
- The amount in seconds in which the trade will expire.
-
-