Class TradeDetailsTypesDef.CancelTradeDetails.Builder
java.lang.Object
com.caplin.generated.motif.fx.tradedetails.TradeDetailsTypesDef.CancelTradeDetails.Builder
- Enclosing class:
- TradeDetailsTypesDef.CancelTradeDetails
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setCancellationProfitLossAmount
(@NotNull String cancellationProfitLossAmount) setCancellationProfitLossAmount
(@NotNull BigDecimal cancellationProfitLossAmount) setCancellationProfitLossCurrency
(@NotNull String cancellationProfitLossCurrency) setCancellationProfitLossCurrency
(@NotNull BigDecimal cancellationProfitLossCurrency) setProfitLossAmount
(@NotNull String profitLossAmount) setProfitLossAmount
(@NotNull BigDecimal profitLossAmount) setProfitLossCurrency
(@NotNull String profitLossCurrency) setProfitLossCurrency
(@NotNull BigDecimal profitLossCurrency) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setProfitLossAmount
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setProfitLossAmount(@NotNull @NotNull BigDecimal profitLossAmount) - Returns:
- The profit/loss of the trade at execution time.
-
setProfitLossAmount
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setProfitLossAmount(@NotNull @NotNull String profitLossAmount) - Returns:
- The profit/loss of the trade at execution time.
-
setProfitLossCurrency
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setProfitLossCurrency(@NotNull @NotNull BigDecimal profitLossCurrency) - Returns:
- The currency the profit/loss of the trade is provided in.
-
setProfitLossCurrency
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setProfitLossCurrency(@NotNull @NotNull String profitLossCurrency) - Returns:
- The currency the profit/loss of the trade is provided in.
-
setCancellationProfitLossAmount
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setCancellationProfitLossAmount(@NotNull @NotNull BigDecimal cancellationProfitLossAmount) - Returns:
- The estimated profit/loss of this cancellation.
-
setCancellationProfitLossAmount
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setCancellationProfitLossAmount(@NotNull @NotNull String cancellationProfitLossAmount) - Returns:
- The estimated profit/loss of this cancellation.
-
setCancellationProfitLossCurrency
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setCancellationProfitLossCurrency(@NotNull @NotNull BigDecimal cancellationProfitLossCurrency) - Returns:
- The currency the estimated profit/loss of this cancellation is provided in.
-
setCancellationProfitLossCurrency
@NotNull public @NotNull TradeDetailsTypesDef.CancelTradeDetails.Builder setCancellationProfitLossCurrency(@NotNull @NotNull String cancellationProfitLossCurrency) - Returns:
- The currency the estimated profit/loss of this cancellation is provided in.
-