Class SubmitAckTradeEvent
java.lang.Object
com.caplin.generated.motif.fx.trading.esp.events.server.SubmitAckTradeEvent
- All Implemented Interfaces:
Message
A single event acting on a ESPTrade.
The event may be client generated and received through the respective RFSTradeListener interface or it may be generated by custom code to be sent to the client.
A ESPTradeEvent is created using the ESPTrade it relates to.
A ESPTradeEvent represents a message sent by the server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a field to this Event.voidAdds a map of fields and their values to this eventcom.caplin.trading.TradeEventvoidsetInitialTimestamp(Date date) Sets LTY_INIT_TS field to this TradeEvent.voidsetSubmissionDate(Object value) The date on the server that the trade was submitted to the OMS (ISO format)voidsetSubmissionTime(Object value) The time on the server that the trade was submitted to the OMS (HH:MM:SS)toString()
-
Constructor Details
-
SubmitAckTradeEvent
-
-
Method Details
-
getFields
-
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 aStringusingBigDecimal.toPlainString()
-
addFields
Adds a map of fields and their values to this event- Parameters:
fields- A map of field names to values to be added to the event. If the value is a BigDecimal then it will be converted to aStringusingBigDecimal.toPlainString()
-
setInitialTimestamp
Sets LTY_INIT_TS field to this TradeEvent.- Parameters:
date- The time the LTY_INIT_TS field will be set to.
-
setSubmissionDate
The date on the server that the trade was submitted to the OMS (ISO format) -
setSubmissionTime
The time on the server that the trade was submitted to the OMS (HH:MM:SS) -
getBackingEvent
public com.caplin.trading.TradeEvent getBackingEvent()- Returns:
- Get the
TradeEventbacking this event
-
toString
-