Class NotificationsTypesDef.ExecutionNotification.Builder

    • Method Detail

      • toString

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

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setExecutionDateTime​(@NotNull
                                                                                                 @NotNull java.lang.String executionDateTime)
        Parameters:
        executionDateTime - e.g. 20160322123621
        Returns:
        executionDateTime
      • setBuySell

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setBuySell​(@NotNull
                                                                                       @NotNull java.lang.String buySell)
        Returns:
        The direction of the trade or trade leg, from the client's perspective. This always refers to the BaseCurrency, NOT the DealtCurrency.
      • setTenor

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setTenor​(@NotNull
                                                                                     @NotNull java.lang.String tenor)
        Parameters:
        tenor - e.g. 1M
        Returns:
        Supported types are [ON, [TODAY, TOD, TD], TN, [TOM, ND], SPOT, SN, 1D, 1W, 2W, 3W, 4W, 1M, 2M, 4M, 5M, 6M, 7M, 8M, 9M, 10M, 11M, [1Y, 12M], 15M, 18M, 21M, [2Y, 24M], [3Y, 36M], [4Y, 48M], [5Y, 60M], broken]. 'broken' indicates that the settlement date does not fall onto a tenor.
      • setDealtCurrency

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setDealtCurrency​(@NotNull
                                                                                             @NotNull java.lang.String dealtCurrency)
        Parameters:
        dealtCurrency - e.g. GBP
        Returns:
        The currency of the Amount of a trade or order.
      • setContraAmount

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setContraAmount​(@NotNull
                                                                                            @NotNull java.math.BigDecimal contraAmount)
        Parameters:
        contraAmount - e.g. 350
        Returns:
        The amount that is exchanged for the Amount. This will be defined in the contra currency of the DealtCurrency.
      • setContraAmount

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setContraAmount​(@NotNull
                                                                                            @NotNull java.lang.String contraAmount)
        Parameters:
        contraAmount - e.g. 350
        Returns:
        The amount that is exchanged for the Amount. This will be defined in the contra currency of the DealtCurrency.
      • setSpotRateDPS

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setSpotRateDPS​(@NotNull
                                                                                           @NotNull java.lang.String spotRateDPS)
        Parameters:
        spotRateDPS - e.g. 5
        Returns:
        The number of decimal places to display after the decimal point.
      • setAllInRateDPS

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setAllInRateDPS​(@NotNull
                                                                                            @NotNull java.lang.String allInRateDPS)
        Parameters:
        allInRateDPS - e.g. 5
        Returns:
        The number of decimal places to display after the decimal point.
      • setForwardPointsDecimalOffset

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setForwardPointsDecimalOffset​(int forwardPointsDecimalOffset)
        Parameters:
        forwardPointsDecimalOffset - e.g. 4
        Returns:
        Optional override to determine the number of decimal places to move forward points before displaying them. Should be used if standard display of pips is not desired.
      • setForwardPointsDecimalOffset

        @NotNull
        public @NotNull NotificationsTypesDef.ExecutionNotification.Builder setForwardPointsDecimalOffset​(@NotNull
                                                                                                          @NotNull java.lang.String forwardPointsDecimalOffset)
        Parameters:
        forwardPointsDecimalOffset - e.g. 4
        Returns:
        Optional override to determine the number of decimal places to move forward points before displaying them. Should be used if standard display of pips is not desired.