java.lang.Object
com.caplin.motif.fx.trading.orders.details.Strategy

@Deprecated public class Strategy extends 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 Details

    • getField

      public String getField(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 Map<String,String> getFields()
      Deprecated.
      Returns the fields directly related to this strategy.
      Returns:
      the fields directly related to this strategy.
    • getOrders

      public List<Order> getOrders()
      Deprecated.
      Returns the set of orders associated with this strategy.
      Returns:
      A map of orders associated with this strategy.
      See Also:
    • 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:
    • getRequestID

      public String getRequestID()
      Deprecated.
    • hasRequestIDChanged

      public boolean hasRequestIDChanged()
      Deprecated.
    • getUsername

      public String getUsername()
      Deprecated.
    • hasUsernameChanged

      public boolean hasUsernameChanged()
      Deprecated.
    • getTOBOUser

      public String getTOBOUser()
      Deprecated.
    • getAccount

      public Account getAccount()
      Deprecated.
    • hasAccountChanged

      public boolean hasAccountChanged()
      Deprecated.
    • getCurrencyPair

      public 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.
    • getType

      public StrategyType getType()
      Deprecated.
    • hasTypeChanged

      public boolean hasTypeChanged()
      Deprecated.
    • getAlertTypes

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

      public boolean hasAlertTypesChanged()
      Deprecated.
    • getRemarks

      public String getRemarks()
      Deprecated.
    • hasRemarksChanged

      public boolean hasRemarksChanged()
      Deprecated.
    • getMemo

      public 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(String fieldName)
      Deprecated.
    • equals

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

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

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