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 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
-
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.trading.TradeEvent
Gets the fields of this TradeEvent as a MapgetLegById
(int legId) Deprecated.getLegById
(String legId) Deprecated.getLegByIndex
(int index) Deprecated.getLegs()
Deprecated.getLLegs()
int
Deprecated.getULegs()
boolean
isSales()
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, getNumULegs, getULegById, getULegById, getULegByIndex
Methods inherited from interface com.caplin.motif.datasource.LeggedMessageRoot
getId, getIndex
Methods inherited from interface com.caplin.generated.motif.fx.trading.fieldsets.SubmissionClientFieldSet
getAccount, getAppID, getAssetClass, getControlAddLeg, getCurrencyPair, getDealtCurrency, getIsCommercial, getPurpose, getTOBOUser, getTradingAssetClass, getTradingProtocol, getTradingSubProtocol, getTradingType
-
Constructor Details
-
SubmitTradeEvent
public SubmitTradeEvent(com.caplin.trading.TradeEvent tradeEvent)
-
-
Method Details
-
getFields
Gets the fields of this TradeEvent as a Map -
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
- 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
- Returns:
- This field is used to tell the server if and how to apply slippage. The possible values are: FillAtMarket, FillAtMyRate or AllowFillSlippage.
-
getIsCoverTrade
- Returns:
- This field is used to indicate to the back end that a cover trade has been submitted.
-
getSlippageAmount
- Returns:
- The amount of slippage permitted.
-
getBackingEvent
public com.caplin.trading.TradeEvent getBackingEvent()- Returns:
- Get the
TradeEvent
backing this event
-
getLLegs
- Specified by:
getLLegs
in interfaceESPSubmissionClientFieldSet
- Specified by:
getLLegs
in interfaceSubmissionClientFieldSet
- Returns:
- Get all the L legs for this trade
-
getULegs
- Specified by:
getULegs
in interfaceESPSubmissionClientFieldSet
- Returns:
- Get all the U legs for this trade
-
getLegs
Deprecated.- Returns:
- Get all the L legs for this trade
This method is deprecated, please use
getLLegs()
-
getLegById
Deprecated.- Returns:
- Get the L leg for the given id
This method is deprecated, please use
ESPSubmissionClientFieldSet.getLLegById(int)
-
getLegById
Deprecated.- Returns:
- Get the L leg for the given id
This method is deprecated, please use
ESPSubmissionClientFieldSet.getLLegById(String)
-
getLegByIndex
Deprecated.- Returns:
- Get the L leg for the given index
This method is deprecated, please use
ESPSubmissionClientFieldSet.getLLegByIndex(int)
-
getNumLegs
Deprecated.- Returns:
- Get the number of L legs for this trade
This method is deprecated, please use
ESPSubmissionClientFieldSet.getNumLLegs()
-
getNearLeg
-
isSales
public boolean isSales() -
getBaseCurrency
-
getTermCurrency
-
toString
-