public class CustomFieldValues
extends java.lang.Object
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
.
Modifier and Type | Class and Description |
---|---|
static class |
CustomFieldValues.Builder
Helper class that is used to construct a
CustomFieldValues object. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAST_EDITED_BY |
static java.lang.String |
TIME_CONNECTION_RECEIVED |
static java.lang.String |
TIME_SETTING_UP_TRADE |
static java.lang.String |
TIME_TRADE_RECEIVED |
static java.lang.String |
TIME_TRADE_SUBMITTED |
static java.lang.String |
TIME_WAITING_FOR_CONNECTION |
static java.lang.String |
USERNAME |
Modifier and Type | Method and Description |
---|---|
static CustomFieldValues.Builder |
builder()
Returns a new builder that can be used to create a
CustomFieldValues . |
static CustomFieldValues.Builder |
builder(CustomFieldValues customFieldValues)
Returns a new builder pre-populated with the values from the specified
CustomFieldValues that can be
used to create a new CustomFieldValues . |
java.lang.String |
getAmount()
Returns the amount.
|
AssetClass |
getAssetClass()
Returns the AssetClass.
|
java.lang.String |
getClientTimePriceClicked()
Returns the time the client clicked on the price.
|
java.lang.String |
getClientTimePriceOnScreen()
Returns the time the price was displayed on the client's screen.
|
java.lang.String |
getFarAmount()
Returns the far amount.
|
java.lang.String |
getLastEditedBy() |
java.lang.String |
getNearAmount()
Returns the near amount.
|
java.lang.String |
getQuoteId()
Returns the quote ID.
|
java.lang.String |
getServerTimeConnectionReceived()
Returns the time that the server received a connection.
|
java.lang.String |
getServerTimePriceReceived()
Returns the time on the server that the price was received from RET.
|
java.lang.String |
getServerTimeSettingUpTrade()
Returns the time the server took setting up a trade.
|
java.lang.String |
getServerTimeTradeReceived()
Returns the time on the server that the trade was received.
|
java.lang.String |
getServerTimeTradeSubmitted()
Returns the time on the server that the trade was submitted.
|
java.lang.String |
getServerTimeWaitingForConnection()
Returns the time the server has spent waiting for a connection.
|
TradingProtocol |
getTradingProtocol()
Returns the TradingProtocol.
|
java.lang.String |
getUnit()
Returns the unit.
|
java.lang.String |
getUsername()
Returns the username.
|
java.lang.String |
getValue(java.lang.String key)
Returns the value associated with the given key.
|
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
getValues()
Returns an ImmutableMap containing all of the custom field values.
|
public static final java.lang.String USERNAME
public static final java.lang.String TIME_TRADE_RECEIVED
public static final java.lang.String TIME_CONNECTION_RECEIVED
public static final java.lang.String TIME_WAITING_FOR_CONNECTION
public static final java.lang.String TIME_SETTING_UP_TRADE
public static final java.lang.String TIME_TRADE_SUBMITTED
public static final java.lang.String LAST_EDITED_BY
public java.lang.String getUsername()
public TradingProtocol getTradingProtocol()
public AssetClass getAssetClass()
public java.lang.String getAmount()
public java.lang.String getNearAmount()
public java.lang.String getFarAmount()
public java.lang.String getUnit()
public java.lang.String getClientTimePriceOnScreen()
public java.lang.String getClientTimePriceClicked()
public java.lang.String getServerTimePriceReceived()
public java.lang.String getServerTimeTradeReceived()
public java.lang.String getServerTimeConnectionReceived()
public java.lang.String getServerTimeWaitingForConnection()
public java.lang.String getServerTimeSettingUpTrade()
public java.lang.String getServerTimeTradeSubmitted()
public java.lang.String getQuoteId()
public java.lang.String getLastEditedBy()
public java.lang.String getValue(java.lang.String key)
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getValues()
public static CustomFieldValues.Builder builder(CustomFieldValues customFieldValues)
CustomFieldValues
that can be
used to create a new CustomFieldValues
.public static CustomFieldValues.Builder builder()
CustomFieldValues
.Copyright © 2016 Caplin Systems.