Class TradeDetailsPartsDef.TradeDetailsFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.tradedetails.TradeDetailsPartsDef.TradeDetailsFields.Builder
-
- Enclosing class:
- TradeDetailsPartsDef.TradeDetailsFields
public static final class TradeDetailsPartsDef.TradeDetailsFields.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
addField(@NotNull String key, @NotNull String value)
@NotNull TradeDetailsPartsDef.TradeDetailsFields
build()
@NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
setCurrencyPair(@NotNull String currencyPair)
@NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
setDealtCurrency(@NotNull String dealtCurrency)
@NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
setTradingType(@NotNull String tradingType)
@NotNull String
toString()
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
-
build
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields build()
-
setCurrencyPair
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setCurrencyPair(@NotNull @NotNull String currencyPair)
- Returns:
- The currency pair for the trade. For example, EURUSD
-
setDealtCurrency
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setDealtCurrency(@NotNull @NotNull String dealtCurrency)
- Returns:
- The currency of the Amount of a trade or order.
-
setTradingType
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setTradingType(@NotNull @NotNull String tradingType)
- Returns:
- Caplin supported values are [SPOT, FWD, NDF, NDF_FIXING, TIME_OPTION, DRAWDOWN, SWAP, BLOCK, PAR_FORWARD]. See the constants defined within com.caplin.motif.fx.trading.FXTradingType for further details.
-
-