Class CustomFieldValues

java.lang.Object
com.caplin.motif.fx.ret.common.customfield.CustomFieldValues

public class CustomFieldValues extends 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.

See Also:
  • Field Details

  • Method Details

    • builder

      public 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.
    • builder

      public static CustomFieldValues.Builder builder()
      Returns a new builder that can be used to create a CustomFieldValues.
    • getUsername

      public String getUsername()
      Returns the username.
    • getTradingProtocol

      public TradingProtocol getTradingProtocol()
      Returns the TradingProtocol.
    • getAssetClass

      public AssetClass getAssetClass()
      Returns the AssetClass.
    • getAmount

      public String getAmount()
      Returns the amount.
    • getNearAmount

      public String getNearAmount()
      Returns the near amount.
    • getFarAmount

      public String getFarAmount()
      Returns the far amount.
    • getUnit

      public String getUnit()
      Returns the unit.
    • getClientTimePriceOnScreen

      public String getClientTimePriceOnScreen()
      Returns the time the price was displayed on the client's screen.
    • getClientTimePriceClicked

      public String getClientTimePriceClicked()
      Returns the time the client clicked on the price.
    • getServerTimePriceReceived

      public String getServerTimePriceReceived()
      Returns the time on the server that the price was received from RET.
    • getServerTimeTradeReceived

      public String getServerTimeTradeReceived()
      Returns the time on the server that the trade was received.
    • getServerTimeConnectionReceived

      public String getServerTimeConnectionReceived()
      Returns the time that the server received a connection.
    • getServerTimeWaitingForConnection

      public String getServerTimeWaitingForConnection()
      Returns the time the server has spent waiting for a connection.
    • getServerTimeSettingUpTrade

      public String getServerTimeSettingUpTrade()
      Returns the time the server took setting up a trade.
    • getServerTimeTradeSubmitted

      public String getServerTimeTradeSubmitted()
      Returns the time on the server that the trade was submitted.
    • getQuoteId

      public String getQuoteId()
      Returns the quote ID.
    • getLastEditedBy

      public String getLastEditedBy()
    • getValue

      public String getValue(String key)
      Returns the value associated with the given key.
    • getValues

      public com.google.common.collect.ImmutableMap<String,String> getValues()
      Returns an ImmutableMap containing all of the custom field values.