Class TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder
-
- Enclosing class:
- TradeConfPartsDef.SalesLegTradeConfirmationFields
public static final class TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setTraderAllInRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderAllInRate(@NotNull @NotNull java.math.BigDecimal traderAllInRate)
- Parameters:
traderAllInRate
- e.g. 1.005390- Returns:
- The all-in rate, with no client margin applied to it
-
setTraderAllInRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderAllInRate(@NotNull @NotNull java.lang.String traderAllInRate)
- Parameters:
traderAllInRate
- e.g. 1.005390- Returns:
- The all-in rate, with no client margin applied to it
-
setTraderFwdPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderFwdPoints(@NotNull @NotNull java.math.BigDecimal traderFwdPoints)
- Parameters:
traderFwdPoints
- e.g. 0.005390- Returns:
- The forward points with no client margin applied to them.
-
setTraderFwdPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderFwdPoints(@NotNull @NotNull java.lang.String traderFwdPoints)
- Parameters:
traderFwdPoints
- e.g. 0.005390- Returns:
- The forward points with no client margin applied to them.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull java.math.BigDecimal fwdMargin, boolean isEditable)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull java.math.BigDecimal fwdMargin)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull java.lang.String fwdMargin, boolean isEditable)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMargin(@NotNull @NotNull java.lang.String fwdMargin)
- Parameters:
fwdMargin
- e.g. 0.000019- Returns:
- The Forward margin that the user has selected. This field should be sent raw and unformatted.
-
setFwdMarginEditable
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setFwdMarginEditable()
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull java.math.BigDecimal allInMargin, boolean isEditable)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull java.math.BigDecimal allInMargin)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull java.lang.String allInMargin, boolean isEditable)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMargin(@NotNull @NotNull java.lang.String allInMargin)
- Parameters:
allInMargin
- e.g. 0.00054- Returns:
- The sales user's selected SpotMargin added to the sales user's selected L1_FwdMargin.
-
setAllInMarginEditable
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAllInMarginEditable()
-
setTOBOUser
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUser(@NotNull @NotNull java.lang.String tOBOUser, boolean isEditable, boolean isRisk)
- Parameters:
tOBOUser
- e.g. client@customer.co.za- Returns:
- The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
-
setTOBOUser
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUser(@NotNull @NotNull java.lang.String tOBOUser)
- Parameters:
tOBOUser
- e.g. client@customer.co.za- Returns:
- The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
-
setTOBOUserEditable
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUserEditable()
-
setTOBOUserRisk
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTOBOUserRisk()
-
setTraderOriginalRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderOriginalRate(@NotNull @NotNull java.math.BigDecimal traderOriginalRate)
- Returns:
- The TraderRate of the trade that this trade was created from.
-
setTraderOriginalRate
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderOriginalRate(@NotNull @NotNull java.lang.String traderOriginalRate)
- Returns:
- The TraderRate of the trade that this trade was created from.
-
setOriginalMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setOriginalMargin(@NotNull @NotNull java.math.BigDecimal originalMargin)
- Returns:
- The Margin of the trade that this trade was created from.
-
setOriginalMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setOriginalMargin(@NotNull @NotNull java.lang.String originalMargin)
- Returns:
- The Margin of the trade that this trade was created from.
-
setAdjustedTraderSwapPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedTraderSwapPoints(@NotNull @NotNull java.math.BigDecimal adjustedTraderSwapPoints)
- Returns:
- The trader swap points adjusted for this repriced trade
-
setAdjustedTraderSwapPoints
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedTraderSwapPoints(@NotNull @NotNull java.lang.String adjustedTraderSwapPoints)
- Returns:
- The trader swap points adjusted for this repriced trade
-
setAdjustedSwapMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedSwapMargin(@NotNull @NotNull java.math.BigDecimal adjustedSwapMargin)
- Returns:
- The swap margin adjusted for this repriced trade
-
setAdjustedSwapMargin
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setAdjustedSwapMargin(@NotNull @NotNull java.lang.String adjustedSwapMargin)
- Returns:
- The swap margin adjusted for this repriced trade
-
addTraderRemarks
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder addTraderRemarks(@NotNull @NotNull TradeConfPartsDef.RemarksEntry traderRemarks)
- Returns:
- traderRemarks
-
setTraderRemarks
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder setTraderRemarks(@NotNull @NotNull TradeConfPartsDef.RemarksEntry traderRemarks, int id)
- Returns:
- traderRemarks
-
addAllTraderRemarks
@NotNull public @NotNull TradeConfPartsDef.SalesLegTradeConfirmationFields.Builder addAllTraderRemarks(@NotNull @NotNull java.util.Collection<TradeConfPartsDef.RemarksEntry> traderRemarks)
- Returns:
- traderRemarks
-
-