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:
        traderSpotBidRate
      • setTraderSpotBidRate

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotBidRate​(@NotNull
                                                                                     @NotNull java.lang.String traderSpotBidRate)
        Parameters:
        traderSpotBidRate - e.g. 1.08575
        Returns:
        traderSpotBidRate
      • setTraderSpotAskRate

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotAskRate​(@NotNull
                                                                                     @NotNull java.math.BigDecimal traderSpotAskRate)
        Parameters:
        traderSpotAskRate - e.g. 1.08575
        Returns:
        traderSpotAskRate
      • setTraderSpotAskRate

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setTraderSpotAskRate​(@NotNull
                                                                                     @NotNull java.lang.String traderSpotAskRate)
        Parameters:
        traderSpotAskRate - e.g. 1.08575
        Returns:
        traderSpotAskRate
      • setDefaultSpotBidMargin

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotBidMargin​(@NotNull
                                                                                        @NotNull java.math.BigDecimal defaultSpotBidMargin)
        Parameters:
        defaultSpotBidMargin - e.g. 0.00054
        Returns:
        defaultSpotBidMargin
      • setDefaultSpotBidMargin

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotBidMargin​(@NotNull
                                                                                        @NotNull java.lang.String defaultSpotBidMargin)
        Parameters:
        defaultSpotBidMargin - e.g. 0.00054
        Returns:
        defaultSpotBidMargin
      • setDefaultSpotAskMargin

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotAskMargin​(@NotNull
                                                                                        @NotNull java.math.BigDecimal defaultSpotAskMargin)
        Parameters:
        defaultSpotAskMargin - e.g. 0.00054
        Returns:
        defaultSpotAskMargin
      • setDefaultSpotAskMargin

        @NotNull
        public @NotNull QuotePartsDef.SalesCommonFields.Builder setDefaultSpotAskMargin​(@NotNull
                                                                                        @NotNull java.lang.String defaultSpotAskMargin)
        Parameters:
        defaultSpotAskMargin - e.g. 0.00054
        Returns:
        defaultSpotAskMargin
      • 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.