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 java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
addField(@NotNull java.lang.String key, @NotNull java.lang.String value)
@NotNull TradeDetailsPartsDef.TradeDetailsFields
build()
@NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
setCurrencyPair(@NotNull java.lang.String currencyPair)
@NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
setDealtCurrency(@NotNull java.lang.String dealtCurrency)
@NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder
setTradingType(@NotNull java.lang.String tradingType)
@NotNull java.lang.String
toString()
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setCurrencyPair
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setCurrencyPair(@NotNull @NotNull java.lang.String currencyPair)
- Returns:
- The currency pair for the trade. For example, EURUSD
-
setDealtCurrency
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setDealtCurrency(@NotNull @NotNull java.lang.String dealtCurrency)
- Parameters:
dealtCurrency
- e.g. GBP- Returns:
- The currency of the Amount of a trade or order.
-
setTradingType
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder setTradingType(@NotNull @NotNull java.lang.String tradingType)
- Returns:
- Caplin supported values are [SPOT, FWD, NDF, NDF_FIXING, NDS, TIME_OPTION, DRAWDOWN, SWAP, BLOCK, PAR_FORWARD]. See the constants defined within com.caplin.motif.fx.trading.FXTradingType for further details.
-
-