public class SubmitTradeEvent extends Object implements LeggedMessageRoot
A single event acting on a BulkOrderSubmissionTrade.
The event may be client generated and received through the respective TradeListener interface or it may be generated by custom code to be sent to the client.
A BulkOrderSubmissionTradeEvent is created using the BulkOrderSubmissionTrade
it relates to.
A BulkOrderSubmissionTradeEvent typically represents a message received from the client or sent by the server. A
message contains a set of fields and values which can be accessed using the
Message.getField(String)
method.
Constructor and Description |
---|
SubmitTradeEvent(com.caplin.trading.TradeEvent tradeEvent) |
Modifier and Type | Method and Description |
---|---|
com.caplin.trading.TradeEvent |
getBackingEvent() |
Map<String,String> |
getFields()
Gets the fields of this TradeEvent as a Map
|
int |
getNumOLegs() |
OrderDetailsClientFieldSetChild |
getOLegById(int legId) |
OrderDetailsClientFieldSetChild |
getOLegById(String legId) |
OrderDetailsClientFieldSetChild |
getOLegByIndex(int index) |
List<OrderDetailsClientFieldSetChild> |
getOLegs() |
String |
getTradingSubProtocol() |
boolean |
isSales() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getIndex
public SubmitTradeEvent(com.caplin.trading.TradeEvent tradeEvent)
public String getTradingSubProtocol()
public com.caplin.trading.TradeEvent getBackingEvent()
TradeEvent
backing this eventpublic List<OrderDetailsClientFieldSetChild> getOLegs()
public OrderDetailsClientFieldSetChild getOLegById(int legId)
public OrderDetailsClientFieldSetChild getOLegById(String legId)
public OrderDetailsClientFieldSetChild getOLegByIndex(int index)
public int getNumOLegs()
public boolean isSales()
Copyright © 2020 Caplin Systems.