Class TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.mm.tradeconfirmation.TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder
-
- Enclosing class:
- TradeConfPartsDef.SalesCommonTradeConfirmationFields
public static final class TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setTraderInterestRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderInterestRate(@NotNull @NotNull java.math.BigDecimal traderInterestRate)
- Returns:
- Interest rate on the given PrincipalAmount with no client margin applied to it.
-
setTraderInterestRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderInterestRate(@NotNull @NotNull java.lang.String traderInterestRate)
- Returns:
- Interest rate on the given PrincipalAmount with no client margin applied to it.
-
setInterestMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setInterestMargin(@NotNull @NotNull java.math.BigDecimal interestMargin, boolean isEditable)
- Returns:
- Interest margin on the given InterestRate.
-
setInterestMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setInterestMargin(@NotNull @NotNull java.math.BigDecimal interestMargin)
- Returns:
- Interest margin on the given InterestRate.
-
setInterestMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setInterestMargin(@NotNull @NotNull java.lang.String interestMargin, boolean isEditable)
- Returns:
- Interest margin on the given InterestRate.
-
setInterestMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setInterestMargin(@NotNull @NotNull java.lang.String interestMargin)
- Returns:
- Interest margin on the given InterestRate.
-
setInterestMarginEditable
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setInterestMarginEditable()
-
setStreamingMode
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setStreamingMode(@NotNull @NotNull java.lang.String streamingMode)
- Parameters:
streamingMode
- e.g. MANUAL, STREAMING- Returns:
- Indicates whether the rates/margins of this trade have been manually set
-
setProfit
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfit(@NotNull @NotNull java.math.BigDecimal profit)
- Returns:
- The sales profit in the specified currency.
-
setProfit
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfit(@NotNull @NotNull java.lang.String profit)
- Returns:
- The sales profit in the specified currency.
-
setProfitCurrency
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrency(@NotNull @NotNull java.lang.String profitCurrency)
- Parameters:
profitCurrency
- e.g. USD- Returns:
- The profit currency that the ProfitRate is being provided for.
-
setProfitCurrencyDPS
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrencyDPS(int profitCurrencyDPS)
- Parameters:
profitCurrencyDPS
- e.g. 2- Returns:
- The number of decimal places that should be used for formatting the amount in profit currency field.
-
setProfitCurrencyDPS
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrencyDPS(@NotNull @NotNull java.lang.String profitCurrencyDPS)
- Parameters:
profitCurrencyDPS
- e.g. 2- Returns:
- The number of decimal places that should be used for formatting the amount in profit currency field.
-
setProfitIsHouse
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitIsHouse(boolean profitIsHouse)
- Returns:
- Whether the field ProfitCurrency is the system/house currency or not.
-
setProfitIsHouse
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitIsHouse(@NotNull @NotNull java.lang.String profitIsHouse)
- Returns:
- Whether the field ProfitCurrency is the system/house currency or not.
-
setProfitRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitRate(@NotNull @NotNull java.math.BigDecimal profitRate)
- Returns:
- The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
-
setProfitRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitRate(@NotNull @NotNull java.lang.String profitRate)
- Returns:
- The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
-
-