Class QuotePartsDef.SalesCommonFields

java.lang.Object
com.caplin.generated.motif.fx.rates.QuotePartsDef.SalesCommonFields
All Implemented Interfaces:
BuilderMessage, Message
Enclosing class:
QuotePartsDef

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

    • getTraderSpotBidRate

      @Nullable public @Nullable BigDecimal getTraderSpotBidRate()
      Returns:
      This field represents the spot bid rate with no client margin applied to it.
    • getTraderSpotAskRate

      @Nullable public @Nullable BigDecimal getTraderSpotAskRate()
      Returns:
      This field represents the spot ask rate with no client margin applied to it.
    • getDefaultSpotBidMargin

      @Nullable public @Nullable BigDecimal getDefaultSpotBidMargin()
      Returns:
      This field represents the default margin to be applied to the SpotBidRate. It should be sent as an unformatted, raw value.
    • getDefaultSpotAskMargin

      @Nullable public @Nullable BigDecimal getDefaultSpotAskMargin()
      Returns:
      This field represents the default margin to be applied to the SpotAskRate. It should be sent as an unformatted, raw value.
    • getProfitCurrency

      @Nullable public @Nullable String getProfitCurrency()
      Returns:
      The profit currency that the ProfitBidRate is being provided for.
    • getProfitCurrencyDPS

      @Nullable public @Nullable Integer getProfitCurrencyDPS()
      Returns:
      The number of decimal places that should be used for formatting the amount in profit currency field.
    • getProfitIsHouse

      @Nullable public @Nullable Boolean getProfitIsHouse()
      Returns:
      Whether the field ProfitCurrency is the system/house currency or not.
    • getProfitBidRate

      @Nullable public @Nullable BigDecimal getProfitBidRate()
      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.
    • getProfitAskRate

      @Nullable public @Nullable BigDecimal getProfitAskRate()
      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.
    • getReasons

      @Nullable public @Nullable String getReasons()
      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.
    • getFields

      @NotNull public @NotNull Map<String,String> getFields()
      Specified by:
      getFields in interface Message
    • getFieldFlags

      @NotNull public @NotNull Map<String,Collection<String>> getFieldFlags()
      Specified by:
      getFieldFlags in interface BuilderMessage
      Returns:
      Get the flags for all fields.
    • getFlagFields

      @NotNull public @NotNull Map<String,Collection<String>> getFlagFields()
      Specified by:
      getFlagFields in interface BuilderMessage
      Returns:
      Get the fields for all flags.
    • toString

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

      @NotNull public static @NotNull QuotePartsDef.SalesCommonFields from(@NotNull @NotNull Map<String,String> fields)
    • from

      @NotNull public static @NotNull QuotePartsDef.SalesCommonFields from(@NotNull @NotNull Map<String,String> fields, @NotNull @NotNull String fieldPrefix)
    • newBuilder

      @NotNull public static @NotNull QuotePartsDef.SalesCommonFields.Builder newBuilder()