Interface SubmissionServerFieldSet
public interface SubmissionServerFieldSet
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a field to this eventdefault void
setAccount
(Object value) The settlement account to usedefault void
A unique identifier for the client applicationdefault void
setAssetClass
(Object value) The asset class for the trade; used by permissioning and licensing.default void
setControlAddLeg
(Object value) This is a control field that the front end trading library adds automatically.default void
setCurrencyPair
(Object value) The currency pair for the trade.default void
setDealtCurrency
(Object value) The dealt currency for the trade (what the amount is expressed in).default void
setIsCommercial
(Object value) Indication whether something is commercial or notdefault void
setPurpose
(Object value) The purpose of the trade.default void
setTOBOUser
(Object value) The user the trade is on behalf of.default void
setTradingAssetClass
(Object value) The trading asset class for the trade; used by permissioning and licensing.default void
setTradingProtocol
(Object value) The trade protocol, e.g, ESP or RFS.default void
setTradingSubProtocol
(Object value) The trade sub protocol, e.g.default void
setTradingType
(Object value) This could be SPOT, FWD for example
-
Method Details
-
addField
Adds a field to this event- Parameters:
fieldName
- The name of the field to add.value
- The value of the field to add. If the value is a BigDecimal then it will be converted to aString
usingBigDecimal.toPlainString()
-
setCurrencyPair
The currency pair for the trade. This is sent in preference to BaseCurrency and TermCurrency because CurrencyPair is what we permission on. It would be a security hole for the back end to read BaseCurrency and TermCurrency fields, because a malicious client could send a valid currency pair in the CurrencyPair field in order to pass the permission check, but send two different currencies in the BaseCurrency and TermCurrency fields in order to execute a trade on a non-permissioned currency pair. Example value: EURUSD- Parameters:
value
- The value to be set passed by i18n
-
setDealtCurrency
The dealt currency for the trade (what the amount is expressed in). Must be either the base or term currency.Example value: EUR- Parameters:
value
- The value to be set passed by i18n
-
setAssetClass
The asset class for the trade; used by permissioning and licensing. Example value: FX- Parameters:
value
- The value to be set passed by i18n
-
setTradingAssetClass
The trading asset class for the trade; used by permissioning and licensing. Example value: FX- Parameters:
value
- The value to be set passed by i18n
-
setTradingProtocol
The trade protocol, e.g, ESP or RFS. The Trading DataSource library needs this so that it knows which state model to use for the trade. Also used for permissioning.- Parameters:
value
- The value to be set passed by i18n
-
setTradingSubProtocol
The trade sub protocol, e.g. SALES_ESP, SALES_RFS or SALES_ALLOCATE. Also used for permissioning.- Parameters:
value
- The value to be set passed by i18n
-
setAccount
The settlement account to use- Parameters:
value
- The value to be set passed by i18n
-
setTOBOUser
The user the trade is on behalf of. For example, if dealer1@novobank.co.za does a trade on behalf of bob_treasurer@anglo.co.za then the value of this field will be bob_treasurer@anglo.co.za. If this is not a TOBO trade then this field is not sent. Example value: bob_treasurer@anglo.co.za- Parameters:
value
- The value to be set passed by i18n
-
setControlAddLeg
This is a control field that the front end trading library adds automatically. The user code doesn't need to do anything with this.- Parameters:
value
- The value to be set passed by i18n
-
setTradingType
This could be SPOT, FWD for example- Parameters:
value
- The value to be set passed by i18n
-
setPurpose
The purpose of the trade. Example: Commercial- Parameters:
value
- The value to be set passed by i18n
-
setIsCommercial
Indication whether something is commercial or not- Parameters:
value
- The value to be set passed by i18n
-
setAppID
A unique identifier for the client application- Parameters:
value
- The value to be set passed by i18n
-