Class QuotePartsDef.SalesLegFields.Builder

java.lang.Object
com.caplin.generated.motif.fx.rates.QuotePartsDef.SalesLegFields.Builder
Enclosing class:
QuotePartsDef.SalesLegFields

public static final class QuotePartsDef.SalesLegFields.Builder extends Object
  • Method Details

    • addField

      @NotNull public @NotNull QuotePartsDef.SalesLegFields.Builder addField(@NotNull @NotNull String key, @NotNull @NotNull String value)
    • build

      @NotNull public @NotNull QuotePartsDef.SalesLegFields build()
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • 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