Class QuotePartsDef.SalesCommonFields.Builder

    • Method Detail

      • toString

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

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotBidRate​(@NotNull
                                                                                     @NotNull java.math.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 java.lang.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 java.math.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 java.lang.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 java.math.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 java.lang.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 java.math.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String profitIsHouse)
        Returns:
        Whether the field ProfitCurrency is the system/house currency or not.
      • setProfitBidRate

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setProfitBidRate​(@NotNull
                                                                                 @NotNull java.math.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 java.lang.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 java.math.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 java.lang.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.