Class TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder
- java.lang.Object
-
- com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder
-
- Enclosing class:
- TradeConfPartsDef.SalesCommonTradeConfirmationFields
public static final class TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
addField
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
-
build
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields build()
-
setProfitCurrency
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrency(@NotNull @NotNull String profitCurrency)
- Parameters:
profitCurrency
- e.g. USD- Returns:
- The profit currency that the ProfitBidRate is being provided for.
-
setProfitCurrencyDPS
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrencyDPS(int profitCurrencyDPS)
- Parameters:
profitCurrencyDPS
- e.g. 5- Returns:
- The number of decimal places that should be used for formatting the amount in profit currency field.
-
setProfitCurrencyDPS
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrencyDPS(@NotNull @NotNull String profitCurrencyDPS)
- Parameters:
profitCurrencyDPS
- e.g. 5- Returns:
- The number of decimal places that should be used for formatting the amount in profit currency field.
-
setProfitIsHouse
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitIsHouse(boolean profitIsHouse)
- Returns:
- Whether the field ProfitCurrency is the system/house currency or not.
-
setProfitIsHouse
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitIsHouse(@NotNull @NotNull String profitIsHouse)
- Returns:
- Whether the field ProfitCurrency is the system/house currency or not.
-
setProfitRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitRate(@NotNull @NotNull BigDecimal profitRate)
- Parameters:
profitRate
- e.g. 1.091790- Returns:
- The conversion rate from the contra currency into the profit currency.
-
setProfitRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitRate(@NotNull @NotNull String profitRate)
- Parameters:
profitRate
- e.g. 1.091790- Returns:
- The conversion rate from the contra currency into the profit currency.
-
setTraderSpotRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderSpotRate(@NotNull @NotNull BigDecimal traderSpotRate)
- Parameters:
traderSpotRate
- e.g. 1.09174- Returns:
- Can be formatted using DigitsBeforePips, NumberOfPips and SpotRateDPS
-
setTraderSpotRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderSpotRate(@NotNull @NotNull String traderSpotRate)
- Parameters:
traderSpotRate
- e.g. 1.09174- Returns:
- Can be formatted using DigitsBeforePips, NumberOfPips and SpotRateDPS
-
setSpotMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setSpotMargin(@NotNull @NotNull BigDecimal spotMargin, boolean isEditable)
- Parameters:
spotMargin
- e.g. 0.00054- Returns:
- Can be formatted using DigitsBeforePips, NumberOfPips and SpotRateDPS
-
setSpotMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setSpotMargin(@NotNull @NotNull BigDecimal spotMargin)
- Parameters:
spotMargin
- e.g. 0.00054- Returns:
- Can be formatted using DigitsBeforePips, NumberOfPips and SpotRateDPS
-
setSpotMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setSpotMargin(@NotNull @NotNull String spotMargin, boolean isEditable)
- Parameters:
spotMargin
- e.g. 0.00054- Returns:
- Can be formatted using DigitsBeforePips, NumberOfPips and SpotRateDPS
-
setSpotMargin
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setSpotMargin(@NotNull @NotNull String spotMargin)
- Parameters:
spotMargin
- e.g. 0.00054- Returns:
- Can be formatted using DigitsBeforePips, NumberOfPips and SpotRateDPS
-
setSpotMarginEditable
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setSpotMarginEditable()
-
setProfit
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfit(@NotNull @NotNull BigDecimal profit)
- Parameters:
profit
- e.g. 1000- Returns:
- The sales profit in the specified currency.
-
setProfit
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfit(@NotNull @NotNull String profit)
- Parameters:
profit
- e.g. 1000- Returns:
- The sales profit in the specified currency.
-
setCompetition
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setCompetition(boolean competition)
- Returns:
- Whether a quote request is in competition. For example, true for quotes from an ECN and false for quotes from an SDP
-
setCompetition
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setCompetition(@NotNull @NotNull String competition)
- Returns:
- Whether a quote request is in competition. For example, true for quotes from an ECN and false for quotes from an SDP
-
setSource
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setSource(@NotNull @NotNull String source)
- Returns:
- The source of a quote request. The name or ID of an ECN, SDP or other channel
-
setReasons
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setReasons(@NotNull @NotNull String reasons)
- Returns:
- A JSON structure containing all the reasons and information about why the trade requires intervention. Please see the Sales Intervention Reasons documentation on the website for more information.
-
setTraderRemarks
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderRemarks(@NotNull @NotNull String traderRemarks)
- Returns:
- The trader's comments on an order leg - visible to only the Trader
-
setIsAdvised
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setIsAdvised(boolean isAdvised)
- Returns:
- Indicates whether the trader gave the client advice
-
setIsAdvised
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setIsAdvised(@NotNull @NotNull String isAdvised)
- Returns:
- Indicates whether the trader gave the client advice
-
setStreamingMode
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setStreamingMode(@NotNull @NotNull String streamingMode)
- Parameters:
streamingMode
- e.g. MANUAL, STREAMING- Returns:
- Indicates whether the rates/margins of this trade have been manually set
-
setTraderSpotAskRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderSpotAskRate(@NotNull @NotNull BigDecimal traderSpotAskRate)
- Parameters:
traderSpotAskRate
- e.g. 1.08575- Returns:
- This field represents the spot ask rate with no client margin applied to it.
-
setTraderSpotAskRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderSpotAskRate(@NotNull @NotNull String traderSpotAskRate)
- Parameters:
traderSpotAskRate
- e.g. 1.08575- Returns:
- This field represents the spot ask rate with no client margin applied to it.
-
setTraderSpotBidRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderSpotBidRate(@NotNull @NotNull BigDecimal traderSpotBidRate)
- Parameters:
traderSpotBidRate
- e.g. 1.08575- Returns:
- This field represents the spot bid rate with no client margin applied to it.
-
setTraderSpotBidRate
@NotNull public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTraderSpotBidRate(@NotNull @NotNull String traderSpotBidRate)
- Parameters:
traderSpotBidRate
- e.g. 1.08575- Returns:
- This field represents the spot bid rate with no client margin applied to it.
-
-