Class Strategy


  • @Deprecated
    public class Strategy
    extends java.lang.Object
    Deprecated.
    This class represents a Strategy which will consist of one or more orders. Instances of this class should be created by calling StrategyBuilder.build() rather than instantiated directly.
    • Method Detail

      • getField

        public java.lang.String getField​(java.lang.String field)
        Deprecated.
        Returns the value of the given field.
        Parameters:
        field - The name of the field to retrieve the value for.
        Returns:
        the value of the given field.
      • getFields

        public java.util.Map<java.lang.String,​java.lang.String> getFields()
        Deprecated.
        Returns the fields directly related to this strategy.
        Returns:
        the fields directly related to this strategy.
      • getOrders

        public java.util.List<Order> getOrders()
        Deprecated.
        Returns the set of orders associated with this strategy.
        Returns:
        A map of orders associated with this strategy.
        See Also:
        Order
      • getOrderByLegID

        public Order getOrderByLegID​(int legID)
        Deprecated.
        Returns the order associated with this strategy that has the provided leg ID.
        Parameters:
        legID - The leg ID to use for finding the order.
        Returns:
        The order with the provided leg ID, or null if no such order can be found.
        See Also:
        Order
      • getRequestID

        public java.lang.String getRequestID()
        Deprecated.
      • hasRequestIDChanged

        public boolean hasRequestIDChanged()
        Deprecated.
      • getUsername

        public java.lang.String getUsername()
        Deprecated.
      • hasUsernameChanged

        public boolean hasUsernameChanged()
        Deprecated.
      • getTOBOUser

        public java.lang.String getTOBOUser()
        Deprecated.
      • getAccount

        public Account getAccount()
        Deprecated.
      • hasAccountChanged

        public boolean hasAccountChanged()
        Deprecated.
      • getCurrencyPair

        public java.lang.String getCurrencyPair()
        Deprecated.
      • hasCurrencyPairChanged

        public boolean hasCurrencyPairChanged()
        Deprecated.
      • getActivationDate

        public ActivationDate getActivationDate()
        Deprecated.
      • hasActivationDateChanged

        public boolean hasActivationDateChanged()
        Deprecated.
      • getExpirationDate

        public ExpirationDate getExpirationDate()
        Deprecated.
      • hasExpirationDateChanged

        public boolean hasExpirationDateChanged()
        Deprecated.
      • hasTypeChanged

        public boolean hasTypeChanged()
        Deprecated.
      • getAlertTypes

        public java.util.Set<AlertType> getAlertTypes()
        Deprecated.
      • hasAlertTypesChanged

        public boolean hasAlertTypesChanged()
        Deprecated.
      • getRemarks

        public java.lang.String getRemarks()
        Deprecated.
      • hasRemarksChanged

        public boolean hasRemarksChanged()
        Deprecated.
      • getMemo

        public java.lang.String getMemo()
        Deprecated.
      • hasMemoChanged

        public boolean hasMemoChanged()
        Deprecated.
      • hasStrategyChanged

        public boolean hasStrategyChanged()
        Deprecated.
      • hasStrategyEditableFieldsChanged

        public boolean hasStrategyEditableFieldsChanged()
        Deprecated.
      • getPreviousStrategy

        public Strategy getPreviousStrategy()
        Deprecated.
      • hasFieldChanged

        public boolean hasFieldChanged​(java.lang.String fieldName)
        Deprecated.
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object