Class QuotePartsDef.SalesCommonFields.Builder

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

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

    • addField

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

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

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • setTraderSpotBidRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotBidRate(@NotNull @NotNull BigDecimal traderSpotBidRate)
      Parameters:
      traderSpotBidRate - e.g. 1.08575
      Returns:
      This field represents the spot bid rate with no client margin applied to it.
    • setTraderSpotBidRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotBidRate(@NotNull @NotNull String traderSpotBidRate)
      Parameters:
      traderSpotBidRate - e.g. 1.08575
      Returns:
      This field represents the spot bid rate with no client margin applied to it.
    • setTraderSpotAskRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotAskRate(@NotNull @NotNull BigDecimal traderSpotAskRate)
      Parameters:
      traderSpotAskRate - e.g. 1.08575
      Returns:
      This field represents the spot ask rate with no client margin applied to it.
    • setTraderSpotAskRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotAskRate(@NotNull @NotNull String traderSpotAskRate)
      Parameters:
      traderSpotAskRate - e.g. 1.08575
      Returns:
      This field represents the spot ask rate with no client margin applied to it.
    • setDefaultSpotBidMargin

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotBidMargin(@NotNull @NotNull BigDecimal defaultSpotBidMargin)
      Parameters:
      defaultSpotBidMargin - e.g. 0.00054
      Returns:
      This field represents the default margin to be applied to the SpotBidRate. It should be sent as an unformatted, raw value.
    • setDefaultSpotBidMargin

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotBidMargin(@NotNull @NotNull String defaultSpotBidMargin)
      Parameters:
      defaultSpotBidMargin - e.g. 0.00054
      Returns:
      This field represents the default margin to be applied to the SpotBidRate. It should be sent as an unformatted, raw value.
    • setDefaultSpotAskMargin

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotAskMargin(@NotNull @NotNull BigDecimal defaultSpotAskMargin)
      Parameters:
      defaultSpotAskMargin - e.g. 0.00054
      Returns:
      This field represents the default margin to be applied to the SpotAskRate. It should be sent as an unformatted, raw value.
    • setDefaultSpotAskMargin

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotAskMargin(@NotNull @NotNull String defaultSpotAskMargin)
      Parameters:
      defaultSpotAskMargin - e.g. 0.00054
      Returns:
      This field represents the default margin to be applied to the SpotAskRate. It should be sent as an unformatted, raw value.
    • setProfitCurrency

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitCurrency(@NotNull @NotNull String profitCurrency)
      Parameters:
      profitCurrency - e.g. USD
      Returns:
      The profit currency that the ProfitBidRate is being provided for.
    • setProfitCurrencyDPS

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitCurrencyDPS(int profitCurrencyDPS)
      Parameters:
      profitCurrencyDPS - e.g. 5
      Returns:
      The number of decimal places that should be used for formatting the amount in profit currency field.
    • setProfitCurrencyDPS

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitCurrencyDPS(@NotNull @NotNull String profitCurrencyDPS)
      Parameters:
      profitCurrencyDPS - e.g. 5
      Returns:
      The number of decimal places that should be used for formatting the amount in profit currency field.
    • setProfitIsHouse

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitIsHouse(boolean profitIsHouse)
      Returns:
      Whether the field ProfitCurrency is the system/house currency or not.
    • setProfitIsHouse

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitIsHouse(@NotNull @NotNull String profitIsHouse)
      Returns:
      Whether the field ProfitCurrency is the system/house currency or not.
    • setProfitBidRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitBidRate(@NotNull @NotNull BigDecimal profitBidRate)
      Parameters:
      profitBidRate - e.g. 1.091790
      Returns:
      The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
    • setProfitBidRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitBidRate(@NotNull @NotNull String profitBidRate)
      Parameters:
      profitBidRate - e.g. 1.091790
      Returns:
      The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
    • setProfitAskRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitAskRate(@NotNull @NotNull BigDecimal profitAskRate)
      Parameters:
      profitAskRate - e.g. 1.090098
      Returns:
      The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
    • setProfitAskRate

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitAskRate(@NotNull @NotNull String profitAskRate)
      Parameters:
      profitAskRate - e.g. 1.090098
      Returns:
      The conversion rate between the contra currency and the profit currency. This can be used for entering profit in an amount of settlement currency.
    • setReasons

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setReasons(@NotNull @NotNull String reasons)
      Returns:
      A JSON structure containing all the reasons and information about why the trade requires intervention. Please see the Sales Intervention Reasons documentation on the website for more information.
    • setReasons

      @NotNull public @NotNull QuotePartsDef.SalesCommonFields.Builder setReasons(@NotNull @NotNull DisplayFields reasons)
      Returns:
      A JSON structure containing all the reasons and information about why the trade requires intervention. Please see the Sales Intervention Reasons documentation on the website for more information.