Class CustomFieldValues
java.lang.Object
com.caplin.motif.fx.ret.common.customfield.CustomFieldValues
This class is used to store additional fields in a TRAPI order.
CustomFieldValues
are stored in the TakerOrderCustom field of a TRAPI order.
This class can be instantiated using the CustomFieldValues.Builder
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Helper class that is used to construct aCustomFieldValues
object. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFieldValues.Builder
builder()
Returns a new builder that can be used to create aCustomFieldValues
.static CustomFieldValues.Builder
builder
(CustomFieldValues customFieldValues) Returns a new builder pre-populated with the values from the specifiedCustomFieldValues
that can be used to create a newCustomFieldValues
.Returns the amount.Returns the AssetClass.Returns the time the client clicked on the price.Returns the time the price was displayed on the client's screen.Returns the far amount.Returns the near amount.Returns the quote ID.Returns the time that the server received a connection.Returns the time on the server that the price was received from RET.Returns the time the server took setting up a trade.Returns the time on the server that the trade was received.Returns the time on the server that the trade was submitted.Returns the time the server has spent waiting for a connection.Returns the TradingProtocol.getUnit()
Returns the unit.Returns the username.Returns the value associated with the given key.Returns an ImmutableMap containing all of the custom field values.
-
Field Details
-
USERNAME
- See Also:
-
TIME_TRADE_RECEIVED
- See Also:
-
TIME_CONNECTION_RECEIVED
- See Also:
-
TIME_WAITING_FOR_CONNECTION
- See Also:
-
TIME_SETTING_UP_TRADE
- See Also:
-
TIME_TRADE_SUBMITTED
- See Also:
-
LAST_EDITED_BY
- See Also:
-
QUOTE_ID
- See Also:
-
-
Method Details
-
builder
Returns a new builder pre-populated with the values from the specifiedCustomFieldValues
that can be used to create a newCustomFieldValues
. -
builder
Returns a new builder that can be used to create aCustomFieldValues
. -
getUsername
Returns the username. -
getTradingProtocol
Returns the TradingProtocol. -
getAssetClass
Returns the AssetClass. -
getAmount
Returns the amount. -
getNearAmount
Returns the near amount. -
getFarAmount
Returns the far amount. -
getUnit
Returns the unit. -
getClientTimePriceOnScreen
Returns the time the price was displayed on the client's screen. -
getClientTimePriceClicked
Returns the time the client clicked on the price. -
getServerTimePriceReceived
Returns the time on the server that the price was received from RET. -
getServerTimeTradeReceived
Returns the time on the server that the trade was received. -
getServerTimeConnectionReceived
Returns the time that the server received a connection. -
getServerTimeWaitingForConnection
Returns the time the server has spent waiting for a connection. -
getServerTimeSettingUpTrade
Returns the time the server took setting up a trade. -
getServerTimeTradeSubmitted
Returns the time on the server that the trade was submitted. -
getQuoteId
Returns the quote ID. -
getLastEditedBy
-
getValue
Returns the value associated with the given key. -
getValues
Returns an ImmutableMap containing all of the custom field values.
-