Class QuotePartsDef.SalesCommonFields.Builder

    • Method Detail

      • 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.