Class SwapHandler
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.submission.rfs.events.RFSHandler
-
- com.caplin.motif.fx.ret.fxtrading.submission.rfs.events.SwapHandler
-
- All Implemented Interfaces:
TradeTypeHandler<com.caplin.generated.motif.fx.trading.rfs.RFSTrade>
public class SwapHandler extends RFSHandler
-
-
Field Summary
-
Fields inherited from class com.caplin.motif.fx.ret.fxtrading.submission.rfs.events.RFSHandler
OVERALL_TIME_OUT
-
-
Constructor Summary
Constructors Constructor Description SwapHandler(com.caplin.generated.motif.fx.trading.rfs.RFSTrade rfsTrade, SwapQuoteFactory swapQuoteFactory, SalesSwapQuoteFactory salesSwapQuoteFactory, RFSConfirmationFactory rfsConfirmationFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLegCount()
java.util.List<com.caplin.ret.trapi.fx.Side>
getLegExecutionSides(java.util.List<com.caplin.motif.fx.trading.BuySell> directions)
com.caplin.motif.datasource.Message
getQuote(com.caplin.ret.trapi.fx.execution.QuoteEvent rfsQuote, com.caplin.motif.fx.trading.PricingSide pricingSide, ProfitConversionRate profitConversionRate)
com.caplin.ret.trapi.fx.FXTradeType
getTradeType()
boolean
isTwoWay(com.caplin.motif.fx.trading.PricingSide pricingSide)
void
setupTradeLeg(com.caplin.ret.trapi.fx.FXLeg leg, java.lang.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 Detail
-
SwapHandler
public SwapHandler(com.caplin.generated.motif.fx.trading.rfs.RFSTrade rfsTrade, SwapQuoteFactory swapQuoteFactory, SalesSwapQuoteFactory salesSwapQuoteFactory, RFSConfirmationFactory rfsConfirmationFactory)
-
-
Method Detail
-
isTwoWay
public boolean isTwoWay(com.caplin.motif.fx.trading.PricingSide pricingSide)
-
getTradeType
public com.caplin.ret.trapi.fx.FXTradeType getTradeType()
-
getLegCount
public int getLegCount()
-
getQuote
public com.caplin.motif.datasource.Message getQuote(com.caplin.ret.trapi.fx.execution.QuoteEvent rfsQuote, com.caplin.motif.fx.trading.PricingSide pricingSide, ProfitConversionRate profitConversionRate) throws QuoteCreationException
- Throws:
QuoteCreationException
-
getLegExecutionSides
public java.util.List<com.caplin.ret.trapi.fx.Side> getLegExecutionSides(java.util.List<com.caplin.motif.fx.trading.BuySell> directions)
-
setupTradeLeg
public void setupTradeLeg(com.caplin.ret.trapi.fx.FXLeg leg, java.lang.String legNum)
-
-