Class QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.Builder

    • Method Detail

      • toString

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

        @NotNull
        public @NotNull QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.Builder setDigitsBeforePips​(int digitsBeforePips)
        Parameters:
        digitsBeforePips - e.g. 2
        Returns:
        Precision-related field that tells the client how to display rates. This is the number of digits between the decimal point and the pips (i.e the big digits that the client wants to look at). For most currency pairs the value of this field will be 2, i.e. for a USDGBP rate of 1.23456 the pips are 45 so there are two digits between the decimal point and the pips. For USDJPY the rate could be 103.256 and the pips are the 25, so in this case the value of DigitsBeforePips should be 0.
      • setDigitsBeforePips

        @NotNull
        public @NotNull QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.Builder setDigitsBeforePips​(@NotNull
                                                                                                          @NotNull java.lang.String digitsBeforePips)
        Parameters:
        digitsBeforePips - e.g. 2
        Returns:
        Precision-related field that tells the client how to display rates. This is the number of digits between the decimal point and the pips (i.e the big digits that the client wants to look at). For most currency pairs the value of this field will be 2, i.e. for a USDGBP rate of 1.23456 the pips are 45 so there are two digits between the decimal point and the pips. For USDJPY the rate could be 103.256 and the pips are the 25, so in this case the value of DigitsBeforePips should be 0.
      • setNumberOfPips

        @NotNull
        public @NotNull QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.Builder setNumberOfPips​(int numberOfPips)
        Parameters:
        numberOfPips - e.g. 2
        Returns:
        Precision-related field that tells the client how to display rates. This is the number of pips the client wants to look at. Normally this value is 2.
      • setNumberOfPips

        @NotNull
        public @NotNull QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.Builder setNumberOfPips​(@NotNull
                                                                                                      @NotNull java.lang.String numberOfPips)
        Parameters:
        numberOfPips - e.g. 2
        Returns:
        Precision-related field that tells the client how to display rates. This is the number of pips the client wants to look at. Normally this value is 2.
      • setProfitCurrencyDPS

        @NotNull
        public @NotNull QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.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 QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.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.
      • setProfitBidRate

        @NotNull
        public @NotNull QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.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 QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.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 QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.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 QuoteUnavailablePartsDef.QuoteUnavailableCommonFields.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.