Class QuotePartsDef.SalesLegFields.Builder
java.lang.Object
com.caplin.generated.motif.fx.rates.QuotePartsDef.SalesLegFields.Builder
- Enclosing class:
- QuotePartsDef.SalesLegFields
-
Method Summary
Modifier and TypeMethodDescription@NotNull QuotePartsDef.SalesLegFields.Builder@NotNull QuotePartsDef.SalesLegFieldsbuild()@NotNull QuotePartsDef.SalesLegFields.BuildersetAskDiscountFactor(@NotNull String askDiscountFactor) @NotNull QuotePartsDef.SalesLegFields.BuildersetAskDiscountFactor(@NotNull BigDecimal askDiscountFactor) @NotNull QuotePartsDef.SalesLegFields.BuildersetBidDiscountFactor(@NotNull String bidDiscountFactor) @NotNull QuotePartsDef.SalesLegFields.BuildersetBidDiscountFactor(@NotNull BigDecimal bidDiscountFactor) @NotNull QuotePartsDef.SalesLegFields.BuildersetComponent1(@NotNull QuotePartsDef.SalesSyntheticComponentLegFields component1) @NotNull QuotePartsDef.SalesLegFields.BuildersetComponent2(@NotNull QuotePartsDef.SalesSyntheticComponentLegFields component2) @NotNull QuotePartsDef.SalesLegFields.BuildersetDefaultFwdAskMargin(@NotNull String defaultFwdAskMargin) @NotNull QuotePartsDef.SalesLegFields.BuildersetDefaultFwdAskMargin(@NotNull BigDecimal defaultFwdAskMargin) @NotNull QuotePartsDef.SalesLegFields.BuildersetDefaultFwdBidMargin(@NotNull String defaultFwdBidMargin) @NotNull QuotePartsDef.SalesLegFields.BuildersetDefaultFwdBidMargin(@NotNull BigDecimal defaultFwdBidMargin) @NotNull QuotePartsDef.SalesLegFields.BuildersetFwdPriceMode(@NotNull String fwdPriceMode) @NotNull QuotePartsDef.SalesLegFields.BuildersetReferenceFwdAskPoints(@NotNull String referenceFwdAskPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetReferenceFwdAskPoints(@NotNull BigDecimal referenceFwdAskPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetReferenceFwdBidPoints(@NotNull String referenceFwdBidPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetReferenceFwdBidPoints(@NotNull BigDecimal referenceFwdBidPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderAllInAskRate(@NotNull String traderAllInAskRate) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderAllInAskRate(@NotNull BigDecimal traderAllInAskRate) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderAllInBidRate(@NotNull String traderAllInBidRate) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderAllInBidRate(@NotNull BigDecimal traderAllInBidRate) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderFwdAskPoints(@NotNull String traderFwdAskPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderFwdAskPoints(@NotNull BigDecimal traderFwdAskPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderFwdBidPoints(@NotNull String traderFwdBidPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetTraderFwdBidPoints(@NotNull BigDecimal traderFwdBidPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVAAskAmount(@NotNull String xVAAskAmount) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVAAskAmount(@NotNull BigDecimal xVAAskAmount) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVAAskPoints(@NotNull String xVAAskPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVAAskPoints(@NotNull BigDecimal xVAAskPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVABidAmount(@NotNull String xVABidAmount) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVABidAmount(@NotNull BigDecimal xVABidAmount) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVABidPoints(@NotNull String xVABidPoints) @NotNull QuotePartsDef.SalesLegFields.BuildersetXVABidPoints(@NotNull BigDecimal xVABidPoints) @NotNull StringtoString()
-
Method Details
-
addField
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value) -
build
-
toString
-
setTraderAllInBidRate
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderAllInBidRate(@NotNull @NotNull BigDecimal traderAllInBidRate) - Parameters:
traderAllInBidRate- e.g. 1.091790- Returns:
- This field represents the all-in bid rate, with no client margin applied to it
-
setTraderAllInBidRate
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderAllInBidRate(@NotNull @NotNull String traderAllInBidRate) - Parameters:
traderAllInBidRate- e.g. 1.091790- Returns:
- This field represents the all-in bid rate, with no client margin applied to it
-
setTraderFwdBidPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderFwdBidPoints(@NotNull @NotNull BigDecimal traderFwdBidPoints) - Parameters:
traderFwdBidPoints- e.g. 0.001198- Returns:
- This field represents the forward bid points with no client margin applied to them.
-
setTraderFwdBidPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderFwdBidPoints(@NotNull @NotNull String traderFwdBidPoints) - Parameters:
traderFwdBidPoints- e.g. 0.001198- Returns:
- This field represents the forward bid points with no client margin applied to them.
-
setDefaultFwdBidMargin
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setDefaultFwdBidMargin(@NotNull @NotNull BigDecimal defaultFwdBidMargin) - Parameters:
defaultFwdBidMargin- e.g. 0.000019- Returns:
- This field represents the default margin to be applied to the L1_TraderFwdBidPoints. It should be sent as an unformatted, raw value.
-
setDefaultFwdBidMargin
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setDefaultFwdBidMargin(@NotNull @NotNull String defaultFwdBidMargin) - Parameters:
defaultFwdBidMargin- e.g. 0.000019- Returns:
- This field represents the default margin to be applied to the L1_TraderFwdBidPoints. It should be sent as an unformatted, raw value.
-
setTraderAllInAskRate
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderAllInAskRate(@NotNull @NotNull BigDecimal traderAllInAskRate) - Parameters:
traderAllInAskRate- e.g. 1.091790- Returns:
- This field represents the all-in ask rate, with no client margin applied to it
-
setTraderAllInAskRate
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderAllInAskRate(@NotNull @NotNull String traderAllInAskRate) - Parameters:
traderAllInAskRate- e.g. 1.091790- Returns:
- This field represents the all-in ask rate, with no client margin applied to it
-
setTraderFwdAskPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderFwdAskPoints(@NotNull @NotNull BigDecimal traderFwdAskPoints) - Parameters:
traderFwdAskPoints- e.g. 0.001198- Returns:
- This field represents the forward ask points with no client margin applied to them.
-
setTraderFwdAskPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setTraderFwdAskPoints(@NotNull @NotNull String traderFwdAskPoints) - Parameters:
traderFwdAskPoints- e.g. 0.001198- Returns:
- This field represents the forward ask points with no client margin applied to them.
-
setDefaultFwdAskMargin
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setDefaultFwdAskMargin(@NotNull @NotNull BigDecimal defaultFwdAskMargin) - Parameters:
defaultFwdAskMargin- e.g. 0.000019- Returns:
- This field represents the default margin to be applied to the L1_TraderFwdAskPoints. It should be sent as an unformatted, raw value.
-
setDefaultFwdAskMargin
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setDefaultFwdAskMargin(@NotNull @NotNull String defaultFwdAskMargin) - Parameters:
defaultFwdAskMargin- e.g. 0.000019- Returns:
- This field represents the default margin to be applied to the L1_TraderFwdAskPoints. It should be sent as an unformatted, raw value.
-
setReferenceFwdBidPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setReferenceFwdBidPoints(@NotNull @NotNull BigDecimal referenceFwdBidPoints) - Parameters:
referenceFwdBidPoints- e.g. 1.08575- Returns:
- This field represents the reference fwd bid points with no client margin applied to it.
-
setReferenceFwdBidPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setReferenceFwdBidPoints(@NotNull @NotNull String referenceFwdBidPoints) - Parameters:
referenceFwdBidPoints- e.g. 1.08575- Returns:
- This field represents the reference fwd bid points with no client margin applied to it.
-
setReferenceFwdAskPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setReferenceFwdAskPoints(@NotNull @NotNull BigDecimal referenceFwdAskPoints) - Parameters:
referenceFwdAskPoints- e.g. 1.08575- Returns:
- This field represents the reference fwd ask points with no client margin applied to it.
-
setReferenceFwdAskPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setReferenceFwdAskPoints(@NotNull @NotNull String referenceFwdAskPoints) - Parameters:
referenceFwdAskPoints- e.g. 1.08575- Returns:
- This field represents the reference fwd ask points with no client margin applied to it.
-
setXVABidAmount
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVABidAmount(@NotNull @NotNull BigDecimal xVABidAmount) - Parameters:
xVABidAmount- e.g. 3- Returns:
- The XVA bid amount. XVA refers to a combined value representing valuation adjustments beyond the basic bid/ask spread.
-
setXVABidAmount
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVABidAmount(@NotNull @NotNull String xVABidAmount) - Parameters:
xVABidAmount- e.g. 3- Returns:
- The XVA bid amount. XVA refers to a combined value representing valuation adjustments beyond the basic bid/ask spread.
-
setXVAAskAmount
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVAAskAmount(@NotNull @NotNull BigDecimal xVAAskAmount) - Parameters:
xVAAskAmount- e.g. 9- Returns:
- The XVA ask amount
-
setXVAAskAmount
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVAAskAmount(@NotNull @NotNull String xVAAskAmount) - Parameters:
xVAAskAmount- e.g. 9- Returns:
- The XVA ask amount
-
setXVABidPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVABidPoints(@NotNull @NotNull BigDecimal xVABidPoints) - Parameters:
xVABidPoints- e.g. 0.000005- Returns:
- The XVA bid points value
-
setXVABidPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVABidPoints(@NotNull @NotNull String xVABidPoints) - Parameters:
xVABidPoints- e.g. 0.000005- Returns:
- The XVA bid points value
-
setXVAAskPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVAAskPoints(@NotNull @NotNull BigDecimal xVAAskPoints) - Parameters:
xVAAskPoints- e.g. 0.000008- Returns:
- The XVA ask points value
-
setXVAAskPoints
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setXVAAskPoints(@NotNull @NotNull String xVAAskPoints) - Parameters:
xVAAskPoints- e.g. 0.000008- Returns:
- The XVA ask points value
-
setBidDiscountFactor
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setBidDiscountFactor(@NotNull @NotNull BigDecimal bidDiscountFactor) - Parameters:
bidDiscountFactor- e.g. 1.2- Returns:
- The bid discount factor value
-
setBidDiscountFactor
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setBidDiscountFactor(@NotNull @NotNull String bidDiscountFactor) - Parameters:
bidDiscountFactor- e.g. 1.2- Returns:
- The bid discount factor value
-
setAskDiscountFactor
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setAskDiscountFactor(@NotNull @NotNull BigDecimal askDiscountFactor) - Parameters:
askDiscountFactor- e.g. 1.2- Returns:
- The ask discount factor value
-
setAskDiscountFactor
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setAskDiscountFactor(@NotNull @NotNull String askDiscountFactor) - Parameters:
askDiscountFactor- e.g. 1.2- Returns:
- The ask discount factor value
-
setFwdPriceMode
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setFwdPriceMode(@NotNull @NotNull String fwdPriceMode) - Returns:
- Indicates whether the Fwd values provided by the pricing engine have been automatically or manually priced. Enum of: MANUAL, AUTO
-
setComponent1
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setComponent1(@NotNull @NotNull QuotePartsDef.SalesSyntheticComponentLegFields component1) - Returns:
- component1
-
setComponent2
@NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder setComponent2(@NotNull @NotNull QuotePartsDef.SalesSyntheticComponentLegFields component2) - Returns:
- component2
-