Class OrderDetailsPartsDef.CommonFields

    • Method Detail

      • getCurrencyPair

        @Nullable
        public @Nullable java.lang.String getCurrencyPair()
        Returns:
        The currency pair for the trade. For example, EURUSD
      • getAccount

        @Nullable
        public @Nullable java.lang.String getAccount()
        Returns:
        The account a trade or order has been submitted against. The format is <description>|<name> or <name>|<name>
      • getAllowedActions

        @Nullable
        public @Nullable java.lang.String getAllowedActions()
        Returns:
        Comma separated list of Caplin supported values [Edit, Deactivate, Cancel, Activate, InactiveEdit, InactiveDeactivate, InactiveCancel, InactiveActivate]
      • getActivationType

        @Nullable
        public @Nullable java.lang.String getActivationType()
        Returns:
        How the order should be activated. Caplin supported statuses are [GFA, EXPLICIT]
      • getActivationDateTime

        @Nullable
        public @Nullable java.time.Instant getActivationDateTime()
        Returns:
        The time and date the order will become active. This is in ISO-8601 format.
      • getActivationDisplayTimeZone

        @Nullable
        public @Nullable java.time.ZoneId getActivationDisplayTimeZone()
        Returns:
        The timezone that the activation time and date should be formatted to for display. This is in the TZ database format.
      • getExpirationType

        @Nullable
        public @Nullable java.lang.String getExpirationType()
        Returns:
        How the order should be deactivated. Caplin supported statuses are [IOC, GTC, GFD, FOK, EXPLICIT]
      • getExpirationDateTime

        @Nullable
        public @Nullable java.time.Instant getExpirationDateTime()
        Returns:
        The time and date the order will be deactivated. This is in ISO-8601 format.
      • getExpirationDisplayTimeZone

        @Nullable
        public @Nullable java.time.ZoneId getExpirationDisplayTimeZone()
        Returns:
        The timezone that the expiration time and date should be formatted to for display. This is in the TZ database format.
      • getAlertType

        @Nullable
        public @Nullable java.lang.String getAlertType()
        Returns:
        The type of alert that an order will send. Caplin supported statuses are [EMAIL, SMS].
      • getStrategyType

        @Nullable
        public @Nullable java.lang.String getStrategyType()
        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.
      • getTraderUsername

        @Nullable
        public @Nullable java.lang.String getTraderUsername()
        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.
      • getTOBOUser

        @Nullable
        public @Nullable java.lang.String getTOBOUser()
        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.
      • getFullName

        @Nullable
        public @Nullable java.lang.String getFullName()
        Returns:
        The full name of the user the trade is on behalf of
      • getEntityDescription

        @Nullable
        public @Nullable java.lang.String getEntityDescription()
        Returns:
        The description of a trade on behalf of entity.
      • getOrderCount

        @Deprecated
        @Nullable
        public @Nullable java.lang.Integer getOrderCount()
        Deprecated.
        Returns:
        orderCount
      • getOrderID

        @Nullable
        public @Nullable java.lang.String getOrderID()
        Returns:
        The id of the order.
      • getActivationDate

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getActivationDate()
        Deprecated.
        Returns:
        What date the strategy should be activated.
      • getActivationTime

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getActivationTime()
        Deprecated.
        Returns:
        What time the strategy should be activated if the ActivationDate was in the format of yyyymmdd.
      • getActivationLocation

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getActivationLocation()
        Deprecated.
        Returns:
        When location should be used to evaluate the time to activate if the ActivationDate was in the format of yyyymmdd.
      • getActivationUTCOffset

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getActivationUTCOffset()
        Deprecated.
        Returns:
        activationUTCOffset
      • getExpirationDate

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getExpirationDate()
        Deprecated.
        Returns:
        What date the strategy should expire.
      • getExpirationTime

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getExpirationTime()
        Deprecated.
        Returns:
        What time the strategy should be activated if the ExpirationDate was in the format of yyyymmdd.
      • getExpirationLocation

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getExpirationLocation()
        Deprecated.
        Returns:
        When location should be used to evaluate the time to expire if the ExpirationDate was in the format of yyyymmdd.
      • getExpirationUTCOffset

        @Deprecated
        @Nullable
        public @Nullable java.lang.String getExpirationUTCOffset()
        Deprecated.
        Returns:
        expirationUTCOffset
      • getTemperature

        @Nullable
        public @Nullable java.lang.String getTemperature()
        Returns:
        Shows how close an Order is to its trigger point at the leg level. Shows the maximum of the leg temperatures at the common level [1=cold,2=warm,3=hot,4=very hot,5=target rate reached].
      • getSubmittedDateTime

        @Nullable
        public @Nullable java.time.Instant getSubmittedDateTime()
        Returns:
        The time and date a trade or order was submitted
      • getFields

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.String> getFields()
        Specified by:
        getFields in interface Message
      • getFieldFlags

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> getFieldFlags()
        Specified by:
        getFieldFlags in interface BuilderMessage
        Returns:
        Get the flags for all fields.
      • getFlagFields

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> getFlagFields()
        Specified by:
        getFlagFields in interface BuilderMessage
        Returns:
        Get the fields for all flags.
      • toString

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

        @NotNull
        public static @NotNull OrderDetailsPartsDef.CommonFields from​(@NotNull
                                                                      @NotNull java.util.Map<java.lang.String,​java.lang.String> fields,
                                                                      @NotNull
                                                                      @NotNull java.lang.String fieldPrefix)