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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder
addField(@NotNull java.lang.String key, @NotNull java.lang.String value)
@NotNull TradeDetailsPartsDef.LegTradeDetailsFields
build()
@NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder
setAccount(@NotNull java.lang.String account)
@NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder
setAmount(@NotNull java.lang.String amount)
@NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder
setAmount(@NotNull java.math.BigDecimal amount)
@NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder
setBuySell(@NotNull java.lang.String buySell)
@NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder
setSettlementDate(@NotNull java.lang.String settlementDate)
@NotNull TradeDetailsPartsDef.LegTradeDetailsFields.Builder
setTenor(@NotNull java.lang.String tenor)
@NotNull java.lang.String
toString()
-
-
-
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. 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>
-
-