public static final class TradeConfPartsDef.CommonTradeConfirmationFields.Builder extends Object
Modifier and Type | Method and Description |
---|---|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
addField(@NotNull String key,
@NotNull String value) |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields |
build() |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setAccount(@NotNull String account,
boolean isEditable)
The account a trade or order has been submitted against.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setAccountEditable() |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setAssetType(@NotNull String assetType) |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setClient(@NotNull String client)
Deprecated.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCostAmount(@NotNull BigDecimal costAmount)
The total transactional cost of performing the trade to the client
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCostAmount(@NotNull String costAmount)
The total transactional cost of performing the trade to the client
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCostCurrency(@NotNull String costCurrency)
The currency that the cost is displayed in, this could be any currency but will typically be set to the Term Currency
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCostCurrencyDPS(int costCurrencyDPS)
The number of decimal places to display after the decimal point.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCostCurrencyDPS(@NotNull String costCurrencyDPS)
The number of decimal places to display after the decimal point.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCostPercentage(@NotNull BigDecimal costPercentage)
Percentage of the overall price which is the transactional cost to the client of performing the trade.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCostPercentage(@NotNull String costPercentage)
Percentage of the overall price which is the transactional cost to the client of performing the trade.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setCurrencyPair(@NotNull String currencyPair)
The currency pair for the trade.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setDealtCurrency(@NotNull String dealtCurrency,
boolean isEditable,
boolean isRisk)
The currency of the Amount of a trade or order.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setDealtCurrencyEditable() |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setDealtCurrencyRisk() |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setDigitsBeforePips(int digitsBeforePips)
Precision-related field that tells the client how to display rates.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setDigitsBeforePips(@NotNull String digitsBeforePips)
Precision-related field that tells the client how to display rates.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setEntityDescription(@NotNull String entityDescription)
The description of a trade on behalf of entity.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setEntityId(@NotNull String entityId)
The entity the trade is on behalf of.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setExecutionDateTime(@NotNull String executionDateTime) |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setIsAmendable(boolean isAmendable)
Whether a trade can be amended.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setIsAmendable(@NotNull String isAmendable)
Whether a trade can be amended.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setIsCancellable(boolean isCancellable)
Whether a trade can be cancelled.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setIsCancellable(@NotNull String isCancellable)
Whether a trade can be cancelled.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setIsReversible(boolean isReversible)
Whether a trade can be reversed.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setIsReversible(@NotNull String isReversible)
Whether a trade can be reversed.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setNumberOfPips(int numberOfPips)
Precision-related field that tells the client how to display rates.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setNumberOfPips(@NotNull String numberOfPips)
Precision-related field that tells the client how to display rates.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setOrderID(@NotNull String orderID)
The id of the order.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setRemarks(@NotNull String remarks)
The clients or trader's comments on an order leg - visible to both the Client and the Trader
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setSpotMidRate(@NotNull BigDecimal spotMidRate)
The mid rate between the SpotAskRate and SpotBidRate.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setSpotMidRate(@NotNull String spotMidRate)
The mid rate between the SpotAskRate and SpotBidRate.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setSpotRate(@NotNull BigDecimal spotRate) |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setSpotRate(@NotNull String spotRate) |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setSpotRateDPS(int spotRateDPS)
The number of decimal places to display after the decimal point.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setSpotRateDPS(@NotNull String spotRateDPS)
The number of decimal places to display after the decimal point.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setTOBOUser(@NotNull String tOBOUser,
boolean isEditable,
boolean isRisk)
The user the trade is on behalf of.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setTOBOUserEditable() |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setTOBOUserRisk() |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setTradeDate(@NotNull String tradeDate) |
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setTradeID(@NotNull String tradeID)
A unique identifier for this trade
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setTraderUsername(@NotNull String traderUsername)
The user who entered the trade.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setTradingType(@NotNull String tradingType)
Caplin supported values are [SPOT, FWD, NDF, SWAP, TIME_OPTION].
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setWarningCode(@NotNull String warningCode)
The code for the warning regarding a quote request.
|
@NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder |
setWarningMessage(@NotNull String warningMessage)
The message to display for any warnings regarding a quote request
|
@NotNull String |
toString() |
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields build()
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTradeID(@NotNull @NotNull String tradeID)
tradeID
- e.g. 00001561@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCurrencyPair(@NotNull @NotNull String currencyPair)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setDealtCurrency(@NotNull @NotNull String dealtCurrency, boolean isEditable, boolean isRisk)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setDealtCurrencyEditable()
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setDealtCurrencyRisk()
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setSpotRate(@NotNull @NotNull BigDecimal spotRate)
spotRate
- e.g. 1.08341@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setSpotRate(@NotNull @NotNull String spotRate)
spotRate
- e.g. 1.08341@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setSpotMidRate(@NotNull @NotNull BigDecimal spotMidRate)
spotMidRate
- e.g. 1.08345@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setSpotMidRate(@NotNull @NotNull String spotMidRate)
spotMidRate
- e.g. 1.08345@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setSpotRateDPS(int spotRateDPS)
spotRateDPS
- e.g. 5@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setSpotRateDPS(@NotNull @NotNull String spotRateDPS)
spotRateDPS
- e.g. 5@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setExecutionDateTime(@NotNull @NotNull String executionDateTime)
executionDateTime
- e.g. 20160322123621@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTradeDate(@NotNull @NotNull String tradeDate)
tradeDate
- e.g. 20160314@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setAccount(@NotNull @NotNull String account, boolean isEditable)
account
- e.g. Garfields|GARF@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setAccountEditable()
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTraderUsername(@NotNull @NotNull String traderUsername)
traderUsername
- e.g. sales_trader@novobank.co.za@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTOBOUser(@NotNull @NotNull String tOBOUser, boolean isEditable, boolean isRisk)
tOBOUser
- e.g. client@customer.co.za@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTOBOUserEditable()
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTOBOUserRisk()
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setEntityId(@NotNull @NotNull String entityId)
entityId
- e.g. CUSTONE@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setEntityDescription(@NotNull @NotNull String entityDescription)
entityDescription
- e.g. Customer 1@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setAssetType(@NotNull @NotNull String assetType)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setTradingType(@NotNull @NotNull String tradingType)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setDigitsBeforePips(int digitsBeforePips)
digitsBeforePips
- e.g. 2@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setDigitsBeforePips(@NotNull @NotNull String digitsBeforePips)
digitsBeforePips
- e.g. 2@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setNumberOfPips(int numberOfPips)
numberOfPips
- e.g. 2@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setNumberOfPips(@NotNull @NotNull String numberOfPips)
numberOfPips
- e.g. 2@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setOrderID(@NotNull @NotNull String orderID)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setWarningCode(@NotNull @NotNull String warningCode)
warningCode
- e.g. 001@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setWarningMessage(@NotNull @NotNull String warningMessage)
warningMessage
- e.g. You do not have sufficient credit for EUR@Deprecated @NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setClient(@NotNull @NotNull String client)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCostAmount(@NotNull @NotNull BigDecimal costAmount)
costAmount
- e.g. 12412891.31@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCostAmount(@NotNull @NotNull String costAmount)
costAmount
- e.g. 12412891.31@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCostCurrency(@NotNull @NotNull String costCurrency)
costCurrency
- e.g. GBP@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCostPercentage(@NotNull @NotNull BigDecimal costPercentage)
costPercentage
- e.g. 13.56@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCostPercentage(@NotNull @NotNull String costPercentage)
costPercentage
- e.g. 13.56@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setIsReversible(boolean isReversible)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setIsReversible(@NotNull @NotNull String isReversible)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setIsAmendable(boolean isAmendable)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setIsAmendable(@NotNull @NotNull String isAmendable)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setIsCancellable(boolean isCancellable)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setIsCancellable(@NotNull @NotNull String isCancellable)
@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCostCurrencyDPS(int costCurrencyDPS)
costCurrencyDPS
- e.g. 2@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setCostCurrencyDPS(@NotNull @NotNull String costCurrencyDPS)
costCurrencyDPS
- e.g. 2@NotNull public @NotNull TradeConfPartsDef.CommonTradeConfirmationFields.Builder setRemarks(@NotNull @NotNull String remarks)
Copyright © 2018 Caplin Systems.