Class TradeDetailsPartsDef.TradeDetailsFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.tradedetails.TradeDetailsPartsDef.TradeDetailsFields.Builder
- Enclosing class:
- TradeDetailsPartsDef.TradeDetailsFields
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setCurrencyPair
(@NotNull String currencyPair) setDealtCurrency
(@NotNull String dealtCurrency) setTradingType
(@NotNull String tradingType) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.TradeDetailsFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
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) - 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 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.
-