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 java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setAmount
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setAmount(@NotNull @NotNull java.math.BigDecimal amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setAmount
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setAmount(@NotNull @NotNull java.lang.String amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setSettlementDate
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setSettlementDate(@NotNull @NotNull java.lang.String settlementDate)
- Returns:
- settlementDate
-
setTenor
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setTenor(@NotNull @NotNull java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String startDate)
- Parameters:
startDate
- e.g. 20150620- Returns:
- startDate
-
setStartTenor
@NotNull public @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder setStartTenor(@NotNull @NotNull java.lang.String startTenor)
- Parameters:
startTenor
- e.g. 1W- Returns:
- startTenor
-
-