Class TradeDetailsPartsDef.LegTradeDetailsFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.tradedetails.TradeDetailsPartsDef.LegTradeDetailsFields.Builder
-
- Enclosing class:
- TradeDetailsPartsDef.LegTradeDetailsFields
public static final class TradeDetailsPartsDef.LegTradeDetailsFields.Builder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
-
build
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields build()
-
setAmount
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setAmount(@NotNull @NotNull BigDecimal amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setAmount
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setAmount(@NotNull @NotNull String amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setSettlementDate
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setSettlementDate(@NotNull @NotNull String settlementDate)
- Returns:
- settlementDate
-
setTenor
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setTenor(@NotNull @NotNull String tenor)
- Parameters:
tenor
- e.g. 1M- Returns:
- Supported types are [ON, [TODAY, TOD, TD], TN, [TOM, ND], SPOT, SN, 1D, 1W, 2W, 3W, 4W, 1M, 2M, 4M, 5M, 6M, 7M, 8M, 9M, 10M, 11M, [1Y, 12M], 15M, 18M, 21M, [2Y, 24M], [3Y, 36M], [4Y, 48M], [5Y, 60M], broken]. broken indicates that a SettlementDate must be sent
-
setBuySell
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setBuySell(@NotNull @NotNull String buySell)
- Returns:
- The direction of the trade or trade leg, from the client's perspective. This always refers to the BaseCurrency, NOT the DealtCurrency.
-
setAccount
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setAccount(@NotNull @NotNull String account)
- Parameters:
account
- e.g. Garfields|GARF- Returns:
- The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
-
setIsTimeOption
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setIsTimeOption(boolean isTimeOption)
- Parameters:
isTimeOption
- e.g. true- Returns:
- true if a leg is time-option
-
setIsTimeOption
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setIsTimeOption(@NotNull @NotNull String isTimeOption)
- Parameters:
isTimeOption
- e.g. true- Returns:
- true if a leg is time-option
-
setStartDate
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setStartDate(@NotNull @NotNull String startDate)
- Parameters:
startDate
- e.g. 20150620- Returns:
- startDate
-
setStartTenor
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setStartTenor(@NotNull @NotNull String startTenor)
- Parameters:
startTenor
- e.g. 1W- Returns:
- startTenor
-
-