Class TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder
- Enclosing class:
- TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields
public static final class TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setCurrencyPair
(@NotNull String currencyPair) setDigitsBeforePips
(int digitsBeforePips) setDigitsBeforePips
(@NotNull String digitsBeforePips) setNumberOfPips
(int numberOfPips) setNumberOfPips
(@NotNull String numberOfPips) setSpotMidRate
(@NotNull String spotMidRate) setSpotMidRate
(@NotNull BigDecimal spotMidRate) setSpotRateDPS
(int spotRateDPS) setSpotRateDPS
(@NotNull String spotRateDPS) setTraderSpotRate
(@NotNull String traderSpotRate) setTraderSpotRate
(@NotNull BigDecimal traderSpotRate) @NotNull String
toString()
-
Method Details
-
addField
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setCurrencyPair
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setCurrencyPair(@NotNull @NotNull String currencyPair) - Returns:
- The currency pair for the trade. For example, EURUSD
-
setTraderSpotRate
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.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.SalesSyntheticComponentTradeConfirmationFields.Builder setTraderSpotRate(@NotNull @NotNull String traderSpotRate) - Parameters:
traderSpotRate
- e.g. 1.09174- Returns:
- Can be formatted using DigitsBeforePips, NumberOfPips and SpotRateDPS
-
setSpotMidRate
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setSpotMidRate(@NotNull @NotNull BigDecimal spotMidRate) - Parameters:
spotMidRate
- e.g. 1.08345- Returns:
- The mid rate between the SpotAskRate and SpotBidRate. Note that this will not always be precisely between.
-
setSpotMidRate
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setSpotMidRate(@NotNull @NotNull String spotMidRate) - Parameters:
spotMidRate
- e.g. 1.08345- Returns:
- The mid rate between the SpotAskRate and SpotBidRate. Note that this will not always be precisely between.
-
setDigitsBeforePips
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setDigitsBeforePips(int digitsBeforePips) - Parameters:
digitsBeforePips
- e.g. 2- Returns:
- Precision-related field that tells the client how to display rates. This is the number of digits between the decimal point and the pips (i.e the big digits that the client wants to look at). For most currency pairs the value of this field will be 2, i.e. for a USDGBP rate of 1.23456 the pips are 45 so there are two digits between the decimal point and the pips. For USDJPY the rate could be 103.256 and the pips are the 25, so in this case the value of DigitsBeforePips should be 0.
-
setDigitsBeforePips
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setDigitsBeforePips(@NotNull @NotNull String digitsBeforePips) - Parameters:
digitsBeforePips
- e.g. 2- Returns:
- Precision-related field that tells the client how to display rates. This is the number of digits between the decimal point and the pips (i.e the big digits that the client wants to look at). For most currency pairs the value of this field will be 2, i.e. for a USDGBP rate of 1.23456 the pips are 45 so there are two digits between the decimal point and the pips. For USDJPY the rate could be 103.256 and the pips are the 25, so in this case the value of DigitsBeforePips should be 0.
-
setNumberOfPips
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setNumberOfPips(int numberOfPips) - Parameters:
numberOfPips
- e.g. 2- Returns:
- Precision-related field that tells the client how to display rates. This is the number of pips the client wants to look at. Normally this value is 2.
-
setNumberOfPips
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setNumberOfPips(@NotNull @NotNull String numberOfPips) - Parameters:
numberOfPips
- e.g. 2- Returns:
- Precision-related field that tells the client how to display rates. This is the number of pips the client wants to look at. Normally this value is 2.
-
setSpotRateDPS
@NotNull public @NotNull TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.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 TradeConfPartsDef.SalesSyntheticComponentTradeConfirmationFields.Builder setSpotRateDPS(@NotNull @NotNull String spotRateDPS) - Parameters:
spotRateDPS
- e.g. 5- Returns:
- The number of decimal places to display after the decimal point.
-