Class SpotHandler
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.submission.rfs.events.RFSHandler
com.caplin.motif.fx.ret.fxtrading.submission.rfs.events.SpotHandler
- All Implemented Interfaces:
TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
-
Field Summary
Fields inherited from class com.caplin.motif.fx.ret.fxtrading.submission.rfs.events.RFSHandler
OVERALL_TIME_OUT
-
Constructor Summary
ConstructorDescriptionSpotHandler
(com.caplin.generated.motif.fx.trading.rfs.RFSTrade rfsTrade, QuoteFactory quoteFactory, SalesQuoteFactory salesQuoteFactory, RFSConfirmationFactory rfsConfirmationFactory) -
Method Summary
Modifier and TypeMethodDescriptionint
List<com.caplin.ret.trapi.fx.Side>
getLegExecutionSides
(List<com.caplin.motif.fx.trading.BuySell> directions) com.caplin.motif.datasource.Message
getQuote
(com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, ProfitConversionRate profitConversionRate) com.caplin.ret.trapi.fx.FXTradeType
boolean
isTwoWay
(com.caplin.motif.fx.trading.PricingSide pricingSide) void
setupTradeLeg
(com.caplin.ret.trapi.fx.FXLeg leg, String legNum) Methods inherited from class com.caplin.motif.fx.ret.fxtrading.submission.rfs.events.RFSHandler
createClientCloseAckEvent, createExecuteAckEvent, createExpiredEvent, createHeldEvent, createPickUpEvent, createQuoteEvent, createQuoteEvent, createSubmitAckEvent, createTradeConfirmationEvent, createWithdrawEvent, getExtraFieldsFromTrade, getTrade
-
Constructor Details
-
SpotHandler
public SpotHandler(com.caplin.generated.motif.fx.trading.rfs.RFSTrade rfsTrade, QuoteFactory quoteFactory, SalesQuoteFactory salesQuoteFactory, RFSConfirmationFactory rfsConfirmationFactory)
-
-
Method Details
-
isTwoWay
public boolean isTwoWay(com.caplin.motif.fx.trading.PricingSide pricingSide) -
getLegCount
public int getLegCount() -
setupTradeLeg
-
getQuote
public com.caplin.motif.datasource.Message getQuote(com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, ProfitConversionRate profitConversionRate) throws QuoteCreationException - Throws:
QuoteCreationException
-
getTradeType
public com.caplin.ret.trapi.fx.FXTradeType getTradeType() -
getLegExecutionSides
-