Class SubmitTradeEvent
- java.lang.Object
-
- com.caplin.generated.motif.fx.trading.esp.events.client.SubmitTradeEvent
-
- All Implemented Interfaces:
ESPSubmissionClientFieldSet
,SubmissionClientFieldSet
,LeggedMessage
,LeggedMessageRoot
,Message
public class SubmitTradeEvent extends java.lang.Object implements ESPSubmissionClientFieldSet, LeggedMessageRoot
A single event acting on a ESPTrade.
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 ESPTradeEvent is created using the
ESPTrade
it relates to.A ESPTradeEvent 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 Summary
Constructors Constructor Description SubmitTradeEvent(com.caplin.trading.TradeEvent tradeEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.caplin.trading.TradeEvent
getBackingEvent()
java.lang.String
getBaseCurrency()
java.util.Map<java.lang.String,java.lang.String>
getFields()
Gets the fields of this TradeEvent as a Mapjava.lang.String
getIsCoverTrade()
ESPSubmissionLegClientFieldSetChild
getLegById(int legId)
Deprecated.ESPSubmissionLegClientFieldSetChild
getLegById(java.lang.String legId)
Deprecated.ESPSubmissionLegClientFieldSetChild
getLegByIndex(int index)
Deprecated.java.util.List<ESPSubmissionLegClientFieldSetChild>
getLegs()
Deprecated.java.util.List<ESPSubmissionLegClientFieldSetChild>
getLLegs()
ESPSubmissionLegClientFieldSetChild
getNearLeg()
int
getNumLegs()
Deprecated.java.lang.String
getOneClickActionType()
java.lang.String
getQuoteID()
java.lang.String
getSlippageAmount()
java.lang.String
getSpotRate()
java.lang.String
getTermCurrency()
boolean
isSales()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.caplin.generated.motif.fx.trading.fieldsets.ESPSubmissionClientFieldSet
getLLegById, getLLegById, getLLegByIndex, getNumLLegs
-
Methods inherited from interface com.caplin.motif.datasource.LeggedMessageRoot
getId, getIndex
-
Methods inherited from interface com.caplin.generated.motif.fx.trading.fieldsets.SubmissionClientFieldSet
getAccount, getAssetClass, getControlAddLeg, getCurrencyPair, getDealtCurrency, getForceReporting, getPurpose, getTOBOUser, getTradingAssetClass, getTradingProtocol, getTradingSubProtocol, getTradingType
-
-
-
-
Method Detail
-
getFields
public java.util.Map<java.lang.String,java.lang.String> getFields()
Gets the fields of this TradeEvent as a Map
-
getQuoteID
public java.lang.String getQuoteID()
- Returns:
- The unique ID of the quote the client wants to trade on. This is generated by the OMS. For SPOT trades it will be the Quote ID for the SPOT quote, for Forward trades it will be the Quote ID of the forward points quote.
-
getSpotRate
public java.lang.String getSpotRate()
- Returns:
- This is the spot rate that the client wants to trade on. The value of this field must equal the value of either the SpotBidRate or SpotAskRate field on the rate update that the client is executing. Example value: 1.08575
-
getOneClickActionType
public java.lang.String getOneClickActionType()
- Returns:
- This field is used to tell the server if and how to apply slippage. The possible values are: FillAtMarket, FillAtMyRate or AllowFillSlippage.
-
getIsCoverTrade
public java.lang.String getIsCoverTrade()
- Returns:
- This field is used to indicate to the back end that a cover trade has been submitted.
-
getSlippageAmount
public java.lang.String getSlippageAmount()
- Returns:
- The amount of slippage permitted.
-
getBackingEvent
public com.caplin.trading.TradeEvent getBackingEvent()
- Returns:
- Get the
TradeEvent
backing this event
-
getLLegs
public java.util.List<ESPSubmissionLegClientFieldSetChild> getLLegs()
- Specified by:
getLLegs
in interfaceESPSubmissionClientFieldSet
- Specified by:
getLLegs
in interfaceSubmissionClientFieldSet
- Returns:
- Get all the L legs for this trade
-
getLegs
@Deprecated public java.util.List<ESPSubmissionLegClientFieldSetChild> getLegs()
Deprecated.- Returns:
- Get all the L legs for this trade
This method is deprecated, please use
getLLegs()
-
getLegById
@Deprecated public ESPSubmissionLegClientFieldSetChild getLegById(int legId)
Deprecated.- Returns:
- Get the L leg for the given id
This method is deprecated, please use
ESPSubmissionClientFieldSet.getLLegById(int)
-
getLegById
@Deprecated public ESPSubmissionLegClientFieldSetChild getLegById(java.lang.String legId)
Deprecated.- Returns:
- Get the L leg for the given id
This method is deprecated, please use
ESPSubmissionClientFieldSet.getLLegById(String)
-
getLegByIndex
@Deprecated public ESPSubmissionLegClientFieldSetChild getLegByIndex(int index)
Deprecated.- Returns:
- Get the L leg for the given index
This method is deprecated, please use
ESPSubmissionClientFieldSet.getLLegByIndex(int)
-
getNumLegs
@Deprecated public int getNumLegs()
Deprecated.- Returns:
- Get the number of L legs for this trade
This method is deprecated, please use
ESPSubmissionClientFieldSet.getNumLLegs()
-
getNearLeg
public ESPSubmissionLegClientFieldSetChild getNearLeg()
-
isSales
public boolean isSales()
-
getBaseCurrency
public java.lang.String getBaseCurrency()
-
getTermCurrency
public java.lang.String getTermCurrency()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-