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 Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAmount
(@NotNull BigDecimal amount) setBuySell
(@NotNull String buySell) setCurrencyPair
(@NotNull String currencyPair) setDealtCurrency
(@NotNull String dealtCurrency) setOrderID
(@NotNull String orderID) setSpotRate
(@NotNull String spotRate) setSpotRate
(@NotNull BigDecimal spotRate) setSpotRateDPS
(int spotRateDPS) setSpotRateDPS
(@NotNull String spotRateDPS) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setOrderID
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setOrderID(@NotNull @NotNull String orderID) - Returns:
- The id of the order.
-
setCurrencyPair
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setCurrencyPair(@NotNull @NotNull String currencyPair) - Returns:
- The currency pair for the trade. For example, EURUSD
-
setBuySell
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.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.
-
setSpotRate
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setSpotRate(@NotNull @NotNull BigDecimal spotRate) - Parameters:
spotRate
- e.g. 1.08341- Returns:
- spotRate
-
setSpotRate
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setSpotRate(@NotNull @NotNull 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 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 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 BigDecimal amount) - Returns:
- The amount of a trade or order in the DealtCurrency.
-
setAmount
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.Builder setAmount(@NotNull @NotNull String amount) - Returns:
- The amount of a trade or order in the DealtCurrency.
-
setTenor
@NotNull public @NotNull NotificationsTypesDef.OrderPriceTouchedNotification.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 the settlement date does not fall onto a tenor.
-