Class StrategyFieldSet
java.lang.Object
com.caplin.motif.fx.trading.orders.details.BaseFieldSet
com.caplin.motif.fx.trading.orders.details.StrategyFieldSet
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 Summary
Modifier and TypeMethodDescriptionsetAccount
(Account account) Deprecated.Sets the account.setAccount
(String accountID, String accountName) Deprecated.Sets the account.setActivationDate
(ActivationDate activationDate) Deprecated.Sets the date, time and location the strategy or order should be activated.setAlertType
(Set<AlertType> alertTypes) Deprecated.Sets the AlertTypesetCurrencyPair
(String value) Deprecated.Sets the currency pair.setExpirationDate
(ExpirationDate expirationDate) Deprecated.Sets the date, time and location the strategy or order should expire.Deprecated.Set Memo - the taker short note of the order.setRemarks
(String remarks) Deprecated.Sets the RemarkssetSpotRateDPS
(Object spotRateDPS) Deprecated.Sets the spot rate DPS.setStrategyType
(StrategyType strategyType) Deprecated.Sets the type of the strategy, for example SINGLE or OCO ("One Cancels the Other").setSubmittedBy
(String username) Deprecated.Sets the username of the user who submitted the strategy.setSubmittedFor
(String username) Deprecated.Sets the username of the user who the strategy is for.setTOBOUser
(String toboUser) Deprecated.Sets the trade on behalf of user.Methods inherited from class com.caplin.motif.fx.trading.orders.details.BaseFieldSet
setField, setFields, toString
-
Method Details
-
setAccount
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
Deprecated.Sets the account.- Parameters:
account
- The account, with id and name- Returns:
- This instance, to allow method chaining.
-
setCurrencyPair
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
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
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
Deprecated.Sets the AlertType- Parameters:
alertTypes
- the set of AlertTypes for this strategy- Returns:
- This instance, to allow method chaining.
-
setRemarks
Deprecated.Sets the Remarks- Parameters:
remarks
- to be attached to the order or strategy- Returns:
- This instance, to allow method chaining.
-
setMemo
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
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
Deprecated.Sets the username of the user who submitted the strategy.- Parameters:
username
- The username.- Returns:
- This instance, to allow method chaining.
-
setSubmittedFor
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
Deprecated.Sets the trade on behalf of user. Use this for sales motifs.- Returns:
- This instance, to allow method chaining.
-
setSpotRateDPS
Deprecated.Sets the spot rate DPS.- Returns:
- This instance, to allow method chaining.
-