Class TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.tradeconfirmation.TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder
- Enclosing class:
- TradeConfPartsDef.TimeOptionLegTradeConfirmationFields
public static final class TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setFilledAmount(@NotNull String filledAmount) setFilledAmount(@NotNull BigDecimal filledAmount) setRemainingAmount(@NotNull String remainingAmount) setRemainingAmount(@NotNull BigDecimal remainingAmount) setRiskDate(@NotNull String riskDate) setRiskTenor(@NotNull String riskTenor) setStartDate(@NotNull String startDate) setStartDate(@NotNull String startDate, boolean isRisk) setStartTenor(@NotNull String startTenor) setStartTenor(@NotNull String startTenor, boolean isRisk) @NotNull StringtoString()
-
Method Details
-
addField
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setFilledAmount
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setFilledAmount(@NotNull @NotNull BigDecimal filledAmount) - Parameters:
filledAmount- e.g. 0- Returns:
- The amount filled on an order, or the amount filled on a time option trade after performing a drawdown(s).
-
setFilledAmount
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setFilledAmount(@NotNull @NotNull String filledAmount) - Parameters:
filledAmount- e.g. 0- Returns:
- The amount filled on an order, or the amount filled on a time option trade after performing a drawdown(s).
-
setRemainingAmount
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setRemainingAmount(@NotNull @NotNull BigDecimal remainingAmount) - Parameters:
remainingAmount- e.g. 500- Returns:
- The amount remaining on a trade or order which can reduce after performing a post trade action/an order is filled.
-
setRemainingAmount
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setRemainingAmount(@NotNull @NotNull String remainingAmount) - Parameters:
remainingAmount- e.g. 500- Returns:
- The amount remaining on a trade or order which can reduce after performing a post trade action/an order is filled.
-
setRiskDate
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setRiskDate(@NotNull @NotNull String riskDate) - Parameters:
riskDate- e.g. 20160314- Returns:
- The date in the settlement window which yields the lowest client sell price, or the highest client buy price.
-
setRiskTenor
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setRiskTenor(@NotNull @NotNull String riskTenor) - Parameters:
riskTenor- e.g. 1W- Returns:
- The tenor in the settlement window which yields the lowest client sell price, or the highest client buy price.
-
setStartDate
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setStartDate(@NotNull @NotNull String startDate, boolean isRisk) - Parameters:
startDate- e.g. 20150620- Returns:
- The date of which the time option becomes active from.
-
setStartDate
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setStartDate(@NotNull @NotNull String startDate) - Parameters:
startDate- e.g. 20150620- Returns:
- The date of which the time option becomes active from.
-
setStartDateRisk
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setStartDateRisk() -
setStartTenor
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setStartTenor(@NotNull @NotNull String startTenor, boolean isRisk) - Parameters:
startTenor- e.g. 1W- Returns:
- The tenor of which the time option becomes active from.
-
setStartTenor
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setStartTenor(@NotNull @NotNull String startTenor) - Parameters:
startTenor- e.g. 1W- Returns:
- The tenor of which the time option becomes active from.
-
setStartTenorRisk
@NotNull public @NotNull TradeConfPartsDef.TimeOptionLegTradeConfirmationFields.Builder setStartTenorRisk()
-