Class OrderDetailsPartsDef.CommonFields.Builder

    • Method Detail

      • setAccount

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAccount​(@NotNull
                                                                             @NotNull String account,
                                                                             boolean isEditable)
        Parameters:
        account - e.g. Garfields|GARF
        Returns:
        The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
      • setAccount

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAccount​(@NotNull
                                                                             @NotNull String account)
        Parameters:
        account - e.g. Garfields|GARF
        Returns:
        The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
      • setAllowedActions

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAllowedActions​(@NotNull
                                                                                    @NotNull String allowedActions)
        Returns:
        Comma separated list of Caplin supported values [Edit, Deactivate, Cancel, Activate, InactiveEdit, InactiveDeactivate, InactiveCancel, InactiveActivate]
      • setActivationType

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationType​(@NotNull
                                                                                    @NotNull String activationType,
                                                                                    boolean isEditable)
        Returns:
        How the order should be activated. Caplin supported statuses are [GFA, EXPLICIT]
      • setActivationType

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationType​(@NotNull
                                                                                    @NotNull String activationType)
        Returns:
        How the order should be activated. Caplin supported statuses are [GFA, EXPLICIT]
      • setActivationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime​(@NotNull
                                                                                        @NotNull Instant activationDateTime,
                                                                                        boolean isEditable)
        Parameters:
        activationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will become active. This is in ISO-8601 format.
      • setActivationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime​(@NotNull
                                                                                        @NotNull Instant activationDateTime)
        Parameters:
        activationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will become active. This is in ISO-8601 format.
      • setActivationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime​(@NotNull
                                                                                        @NotNull String activationDateTime,
                                                                                        boolean isEditable)
        Parameters:
        activationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will become active. This is in ISO-8601 format.
      • setActivationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDateTime​(@NotNull
                                                                                        @NotNull String activationDateTime)
        Parameters:
        activationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will become active. This is in ISO-8601 format.
      • setActivationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone​(@NotNull
                                                                                               @NotNull ZoneId activationDisplayTimeZone,
                                                                                               boolean isEditable)
        Parameters:
        activationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
      • setActivationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone​(@NotNull
                                                                                               @NotNull ZoneId activationDisplayTimeZone)
        Parameters:
        activationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
      • setActivationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone​(@NotNull
                                                                                               @NotNull String activationDisplayTimeZone,
                                                                                               boolean isEditable)
        Parameters:
        activationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
      • setActivationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationDisplayTimeZone​(@NotNull
                                                                                               @NotNull String activationDisplayTimeZone)
        Parameters:
        activationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
      • setExpirationType

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationType​(@NotNull
                                                                                    @NotNull String expirationType,
                                                                                    boolean isEditable)
        Returns:
        How the order should be deactivated. Caplin supported statuses are [IOC, GTC, GFD, FOK, EXPLICIT]
      • setExpirationType

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationType​(@NotNull
                                                                                    @NotNull String expirationType)
        Returns:
        How the order should be deactivated. Caplin supported statuses are [IOC, GTC, GFD, FOK, EXPLICIT]
      • setExpirationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime​(@NotNull
                                                                                        @NotNull Instant expirationDateTime,
                                                                                        boolean isEditable)
        Parameters:
        expirationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will be deactivated. This is in ISO-8601 format.
      • setExpirationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime​(@NotNull
                                                                                        @NotNull Instant expirationDateTime)
        Parameters:
        expirationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will be deactivated. This is in ISO-8601 format.
      • setExpirationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime​(@NotNull
                                                                                        @NotNull String expirationDateTime,
                                                                                        boolean isEditable)
        Parameters:
        expirationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will be deactivated. This is in ISO-8601 format.
      • setExpirationDateTime

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDateTime​(@NotNull
                                                                                        @NotNull String expirationDateTime)
        Parameters:
        expirationDateTime - e.g. 2013-07-24T17:13:59.985
        Returns:
        The time and date the order will be deactivated. This is in ISO-8601 format.
      • setExpirationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone​(@NotNull
                                                                                               @NotNull ZoneId expirationDisplayTimeZone,
                                                                                               boolean isEditable)
        Parameters:
        expirationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
      • setExpirationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone​(@NotNull
                                                                                               @NotNull ZoneId expirationDisplayTimeZone)
        Parameters:
        expirationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
      • setExpirationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone​(@NotNull
                                                                                               @NotNull String expirationDisplayTimeZone,
                                                                                               boolean isEditable)
        Parameters:
        expirationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
      • setExpirationDisplayTimeZone

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationDisplayTimeZone​(@NotNull
                                                                                               @NotNull String expirationDisplayTimeZone)
        Parameters:
        expirationDisplayTimeZone - e.g. Europe/London
        Returns:
        The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
      • setAlertType

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setAlertType​(@NotNull
                                                                               @NotNull String alertType,
                                                                               boolean isEditable)
        Returns:
        The type of alert that an order will send. Caplin supported statuses are [EMAIL, SMS].
      • setStrategyType

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setStrategyType​(@NotNull
                                                                                  @NotNull String strategyType,
                                                                                  boolean isEditable)
        Returns:
        The strategy the order was submitted with. This field should not be used by the front end for structuring orders. Comma separated list of Caplin supported values are [SINGLE, IF-DONE-OCO, OCO, IF-DONE, IF-TIMEOUT, IF-DONE-LOOP, LOOP]. OTHER denotes a strategy type that is unsupported.
      • setStrategyType

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setStrategyType​(@NotNull
                                                                                  @NotNull String strategyType)
        Returns:
        The strategy the order was submitted with. This field should not be used by the front end for structuring orders. Comma separated list of Caplin supported values are [SINGLE, IF-DONE-OCO, OCO, IF-DONE, IF-TIMEOUT, IF-DONE-LOOP, LOOP]. OTHER denotes a strategy type that is unsupported.
      • setTraderUsername

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setTraderUsername​(@NotNull
                                                                                    @NotNull String traderUsername)
        Parameters:
        traderUsername - e.g. sales_trader@novobank.co.za
        Returns:
        The user who entered the trade. This may be on behalf of themselves, or on behalf of someone else. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be dealer1@novobank.co.za. If the user client@customer.co.za makes a trade on behalf of themselves it will be client@customer.co.za.
      • setTOBOUser

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setTOBOUser​(@NotNull
                                                                              @NotNull String tOBOUser)
        Parameters:
        tOBOUser - e.g. client@customer.co.za
        Returns:
        The user the trade is on behalf of. For example, if the logged in user dealer1@novobank.co.za wishes to make a trade on behalf of user client@customer.co.za, then the value of this field will be client@customer.co.za.
      • setEntityDescription

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setEntityDescription​(@NotNull
                                                                                       @NotNull String entityDescription)
        Parameters:
        entityDescription - e.g. Customer 1
        Returns:
        The description of a trade on behalf of entity.
      • setActivationTime

        @Deprecated
        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationTime​(@NotNull
                                                                                    @NotNull String activationTime,
                                                                                    boolean isEditable)
        Deprecated.
        Returns:
        What time the strategy should be activated if the ActivationDate was in the format of yyyymmdd.
      • setActivationLocation

        @Deprecated
        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationLocation​(@NotNull
                                                                                        @NotNull String activationLocation,
                                                                                        boolean isEditable)
        Deprecated.
        Parameters:
        activationLocation - e.g. Europe/London
        Returns:
        When location should be used to evaluate the time to activate if the ActivationDate was in the format of yyyymmdd.
      • setActivationLocation

        @Deprecated
        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setActivationLocation​(@NotNull
                                                                                        @NotNull String activationLocation)
        Deprecated.
        Parameters:
        activationLocation - e.g. Europe/London
        Returns:
        When location should be used to evaluate the time to activate if the ActivationDate was in the format of yyyymmdd.
      • setExpirationTime

        @Deprecated
        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationTime​(@NotNull
                                                                                    @NotNull String expirationTime,
                                                                                    boolean isEditable)
        Deprecated.
        Returns:
        What time the strategy should be activated if the ExpirationDate was in the format of yyyymmdd.
      • setExpirationLocation

        @Deprecated
        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationLocation​(@NotNull
                                                                                        @NotNull String expirationLocation,
                                                                                        boolean isEditable)
        Deprecated.
        Returns:
        When location should be used to evaluate the time to expire if the ExpirationDate was in the format of yyyymmdd.
      • setExpirationLocation

        @Deprecated
        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setExpirationLocation​(@NotNull
                                                                                        @NotNull String expirationLocation)
        Deprecated.
        Returns:
        When location should be used to evaluate the time to expire if the ExpirationDate was in the format of yyyymmdd.
      • setTemperature

        @NotNull
        public @NotNull OrderDetailsPartsDef.CommonFields.Builder setTemperature​(@NotNull
                                                                                 @NotNull String temperature)
        Parameters:
        temperature - e.g. 2
        Returns:
        Shows how close an Order is to its trigger point [1=cold,2=warm,3=hot,4=very hot,5=target rate reached].