Class NotificationsTypesDef.OrderPriceTouchedNotification.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.notifications.NotificationsTypesDef.OrderPriceTouchedNotification.Builder
-
- Enclosing class:
- NotificationsTypesDef.OrderPriceTouchedNotification
public static final class NotificationsTypesDef.OrderPriceTouchedNotification.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder addField(@NotNull @NotNull java.lang.String key, @NotNull @NotNull java.lang.String value)
-
build
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification build()
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setOrderID
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setOrderID(@NotNull @NotNull java.lang.String orderID)
- Returns:
- The id of the order.
-
setCurrencyPair
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setCurrencyPair(@NotNull @NotNull java.lang.String currencyPair)
- Returns:
- The currency pair for the trade. For example, EURUSD
-
setBuySell
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.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.
-
setSpotRate
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setSpotRate(@NotNull @NotNull java.math.BigDecimal spotRate)
- Parameters:
spotRate
- e.g. 1.08341- Returns:
- spotRate
-
setSpotRate
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setSpotRate(@NotNull @NotNull java.lang.String spotRate)
- Parameters:
spotRate
- e.g. 1.08341- Returns:
- spotRate
-
setSpotRateDPS
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setSpotRateDPS(int spotRateDPS)
- Parameters:
spotRateDPS
- e.g. 5- Returns:
- The number of decimal places to display after the decimal point.
-
setSpotRateDPS
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setSpotRateDPS(@NotNull @NotNull java.lang.String spotRateDPS)
- Parameters:
spotRateDPS
- e.g. 5- Returns:
- The number of decimal places to display after the decimal point.
-
setDealtCurrency
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setDealtCurrency(@NotNull @NotNull java.lang.String dealtCurrency)
- Parameters:
dealtCurrency
- e.g. GBP- Returns:
- The currency of the Amount of a trade or order.
-
setAmount
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setAmount(@NotNull @NotNull java.math.BigDecimal amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setAmount
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setAmount(@NotNull @NotNull java.lang.String amount)
- Returns:
- The amount of a trade or order in the DealtCurrency.
-
setTenor
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.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 the settlement date does not fall onto a tenor.
-
-