java.lang.Object
com.caplin.generated.motif.fx.orders.bulkordersubmission.events.client.SubmitTradeEvent
All Implemented Interfaces:
LeggedMessage, LeggedMessageRoot, Message

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 Details

    • SubmitTradeEvent

      public SubmitTradeEvent(com.caplin.trading.TradeEvent tradeEvent)
  • Method Details

    • getFields

      public Map<String,String> getFields()
      Gets the fields of this TradeEvent as a Map
      Specified by:
      getFields in interface Message
      Returns:
      a map of the fields;
    • getTradingSubProtocol

      public String getTradingSubProtocol()
      Returns:
      The sub-protocol of this message, e.g. SALES_ORDER
    • getAppID

      public String getAppID()
      Returns:
      A unique identifier for the client application
    • getBackingEvent

      public com.caplin.trading.TradeEvent getBackingEvent()
      Returns:
      Get the TradeEvent backing this event
    • getOLegs

      Returns:
      Get all the O legs for this trade
    • getOLegById

      public OrderDetailsClientFieldSetChild getOLegById(int legId)
      Returns:
      Get the O leg for the given id
    • getOLegById

      public OrderDetailsClientFieldSetChild getOLegById(String legId)
      Returns:
      Get the O leg for the given id
    • getOLegByIndex

      public OrderDetailsClientFieldSetChild getOLegByIndex(int index)
      Returns:
      Get the O leg for the given index
    • getNumOLegs

      public int getNumOLegs()
      Returns:
      Get the number of O legs for this trade
    • isSales

      public boolean isSales()
    • toString

      public String toString()
      Overrides:
      toString in class Object