Class TradeConfPartsDef.BlockTradeConfirmationFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.BlockTradeConfirmationFields.Builder
-
- Enclosing class:
- TradeConfPartsDef.BlockTradeConfirmationFields
public static final class TradeConfPartsDef.BlockTradeConfirmationFields.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder
addField(@NotNull java.lang.String key, @NotNull java.lang.String value)
@NotNull TradeConfPartsDef.BlockTradeConfirmationFields
build()
@NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder
setNetBuySell(@NotNull java.lang.String netBuySell)
@NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder
setNetContraAmount(@NotNull java.lang.String netContraAmount)
@NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder
setNetContraAmount(@NotNull java.math.BigDecimal netContraAmount)
@NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder
setNetDealtAmount(@NotNull java.lang.String netDealtAmount)
@NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder
setNetDealtAmount(@NotNull java.math.BigDecimal netDealtAmount)
@NotNull java.lang.String
toString()
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradeConfPartsDef.BlockTradeConfirmationFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setNetBuySell
@NotNull public @NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder setNetBuySell(@NotNull @NotNull java.lang.String netBuySell)
- Returns:
- The net direction of all the trade legs, from the client's perspective. This always refers to the BaseCurrency, NOT the DealtCurrency.
-
setNetDealtAmount
@NotNull public @NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder setNetDealtAmount(@NotNull @NotNull java.math.BigDecimal netDealtAmount)
- Parameters:
netDealtAmount
- e.g. 1000000- Returns:
- The net dealt amount (unsigned) for all the trade legs
-
setNetDealtAmount
@NotNull public @NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder setNetDealtAmount(@NotNull @NotNull java.lang.String netDealtAmount)
- Parameters:
netDealtAmount
- e.g. 1000000- Returns:
- The net dealt amount (unsigned) for all the trade legs
-
setNetContraAmount
@NotNull public @NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder setNetContraAmount(@NotNull @NotNull java.math.BigDecimal netContraAmount)
- Parameters:
netContraAmount
- e.g. 1123400- Returns:
- The net contra amount for all the trade legs
-
setNetContraAmount
@NotNull public @NotNull TradeConfPartsDef.BlockTradeConfirmationFields.Builder setNetContraAmount(@NotNull @NotNull java.lang.String netContraAmount)
- Parameters:
netContraAmount
- e.g. 1123400- Returns:
- The net contra amount for all the trade legs
-
-