Class TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder

    • Method Detail

      • toString

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

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setStreamingMode​(@NotNull
                                                                                                      @NotNull java.lang.String streamingMode)
        Parameters:
        streamingMode - e.g. MANUAL, STREAMING
        Returns:
        Indicates whether the rates/margins of this trade have been manually set
      • setProfitCurrencyDPS

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrencyDPS​(int profitCurrencyDPS)
        Parameters:
        profitCurrencyDPS - e.g. 2
        Returns:
        The number of decimal places that should be used for formatting the amount in profit currency field.
      • setProfitCurrencyDPS

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitCurrencyDPS​(@NotNull
                                                                                                          @NotNull java.lang.String profitCurrencyDPS)
        Parameters:
        profitCurrencyDPS - e.g. 2
        Returns:
        The number of decimal places that should be used for formatting the amount in profit currency field.
      • setProfitRate

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitRate​(@NotNull
                                                                                                   @NotNull java.math.BigDecimal profitRate)
        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.
      • setProfitRate

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setProfitRate​(@NotNull
                                                                                                   @NotNull java.lang.String profitRate)
        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.
      • setTradeStatus

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setTradeStatus​(@NotNull
                                                                                                    @NotNull java.lang.String tradeStatus)
        Parameters:
        tradeStatus - e.g. AWAITING-PRICE
        Returns:
        The current status of the trade. Supported types are [AWAITING-TRADER, AWAITING-PRICE, PRICED, EXECUTING, CLOSED, REJECTED, ERRORED, COMPLETED]. CLOSED means the client cancelled the trade request, REJECTED indicates it was rejected by the dealer.
      • setReasons

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setReasons​(@NotNull
                                                                                                @NotNull java.lang.String reasons)
        Parameters:
        reasons - e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultReasonsHeaderDisplayFields','name':'addDefaultReasonsHeaderDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}
        Returns:
        A JSON structure containing all the reasons and information about why the trade requires intervention. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
      • setReasons

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setReasons​(@NotNull
                                                                                                @NotNull DisplayFields reasons)
        Parameters:
        reasons - e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultReasonsHeaderDisplayFields','name':'addDefaultReasonsHeaderDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}
        Returns:
        A JSON structure containing all the reasons and information about why the trade requires intervention. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
      • setDisplayFields

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setDisplayFields​(@NotNull
                                                                                                      @NotNull java.lang.String displayFields)
        Parameters:
        displayFields - e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultMMTermSummaryDisplayFields','name':'addDefaultMMTermSummaryDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}
        Returns:
        Configuration for a frontend to display label-value pairs. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.
      • setDisplayFields

        @NotNull
        public @NotNull TradeConfPartsDef.SalesCommonTradeConfirmationFields.Builder setDisplayFields​(@NotNull
                                                                                                      @NotNull DisplayFields displayFields)
        Parameters:
        displayFields - e.g. method={'import':'static com.caplin.motif.mm.config.DefaultDisplayFields.addDefaultMMTermSummaryDisplayFields','name':'addDefaultMMTermSummaryDisplayFields','comment':'See DefaultDisplayFields javadoc for parameters and available builder methods.'}
        Returns:
        Configuration for a frontend to display label-value pairs. Use DefaultDisplayFields builders to provide Caplin default and/or custom fields.