Class StrategyFieldSet

java.lang.Object
com.caplin.motif.fx.trading.orders.details.BaseFieldSet
com.caplin.motif.fx.trading.orders.details.StrategyFieldSet

@Deprecated public class StrategyFieldSet extends BaseFieldSet
Deprecated.

Represents a set of fields relating to an order strategy.

You do not have to create instances of this class yourself. You can retrieve instances of this class by calling StrategyBuilder.getEditableFields() or StrategyBuilder.getFixedFields().

  • Method Details

    • setAccount

      public StrategyFieldSet setAccount(String accountID, String accountName)
      Deprecated.
      Sets the account.
      Parameters:
      accountID - The identifier of the account.
      accountName - A "friendly name" for the account, for display in the front end.
      Returns:
      This instance, to allow method chaining.
    • setAccount

      public StrategyFieldSet setAccount(Account account)
      Deprecated.
      Sets the account.
      Parameters:
      account - The account, with id and name
      Returns:
      This instance, to allow method chaining.
    • setCurrencyPair

      public StrategyFieldSet setCurrencyPair(String value)
      Deprecated.
      Sets the currency pair. This must be a six character string where the first three characters are the base currency and the second three characters are the term currency, for example USDJPY.
      Parameters:
      value - The currency pair.
      Returns:
      This instance, to allow method chaining.
    • setActivationDate

      public StrategyFieldSet setActivationDate(ActivationDate activationDate)
      Deprecated.
      Sets the date, time and location the strategy or order should be activated.

      Certain other values for the activation date are acceptable, for example GFA meaning "Good for Activation" immediately.

      Parameters:
      activationDate - A domain object representing the activation date.
      Returns:
      This instance, to allow method chaining.
      See Also:
    • setExpirationDate

      public StrategyFieldSet setExpirationDate(ExpirationDate expirationDate)
      Deprecated.
      Sets the date, time and location the strategy or order should expire. Certain other values for the expiration date are acceptable, for example GTC for "Good til Canceled" or GFD for "Good for Day".
      Parameters:
      expirationDate - A domain object representing the expiration date.
      Returns:
      This instance, to allow method chaining.
    • setAlertType

      public StrategyFieldSet setAlertType(Set<AlertType> alertTypes)
      Deprecated.
      Sets the AlertType
      Parameters:
      alertTypes - the set of AlertTypes for this strategy
      Returns:
      This instance, to allow method chaining.
    • setRemarks

      public StrategyFieldSet setRemarks(String remarks)
      Deprecated.
      Sets the Remarks
      Parameters:
      remarks - to be attached to the order or strategy
      Returns:
      This instance, to allow method chaining.
    • setMemo

      public StrategyFieldSet setMemo(String memo)
      Deprecated.
      Set Memo - the taker short note of the order.
      Parameters:
      memo - to be attached to the order or strategy
      Returns:
      This instance, to allow method chaining.
    • setStrategyType

      public StrategyFieldSet setStrategyType(StrategyType strategyType)
      Deprecated.
      Sets the type of the strategy, for example SINGLE or OCO ("One Cancels the Other").
      Parameters:
      strategyType - The type of the strategy.
      Returns:
      This instance, to allow method chaining.
    • setSubmittedBy

      public StrategyFieldSet setSubmittedBy(String username)
      Deprecated.
      Sets the username of the user who submitted the strategy.
      Parameters:
      username - The username.
      Returns:
      This instance, to allow method chaining.
    • setSubmittedFor

      public StrategyFieldSet setSubmittedFor(String username)
      Deprecated.
      Sets the username of the user who the strategy is for. This could be different to the user the strategy was submitted by if there is a sales trader involved.
      Parameters:
      username - The username.
      Returns:
      This instance, to allow method chaining.
    • setTOBOUser

      public StrategyFieldSet setTOBOUser(String toboUser)
      Deprecated.
      Sets the trade on behalf of user. Use this for sales motifs.
      Returns:
      This instance, to allow method chaining.
    • setSpotRateDPS

      public StrategyFieldSet setSpotRateDPS(Object spotRateDPS)
      Deprecated.
      Sets the spot rate DPS.
      Returns:
      This instance, to allow method chaining.