Class DefaultBlockQuoteFactory
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.extension.quote.DefaultBlockQuoteFactory
- All Implemented Interfaces:
BlockQuoteFactory
-
Constructor Summary
ConstructorDescriptionDefaultBlockQuoteFactory
(CommonQuoteFieldsFactory commonFactory, SalesQuoteUtility salesQuoteUtility) -
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.motif.datasource.Message
createBlockQuote
(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade, BlockSubmitWrapper submitEvent, com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote) Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote objectcom.caplin.motif.datasource.Message
createSalesBlockQuote
(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade, BlockSubmitWrapper submitEvent, com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote, ProfitConversionRate profitConversionRate) FX Sales - Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote objectvoid
initialise
(Context context) Invoked by the toolkit.
-
Constructor Details
-
DefaultBlockQuoteFactory
public DefaultBlockQuoteFactory(CommonQuoteFieldsFactory commonFactory, SalesQuoteUtility salesQuoteUtility)
-
-
Method Details
-
initialise
Description copied from interface:BlockQuoteFactory
Invoked by the toolkit. The context provides objects that aid in creating the Quote object.- Specified by:
initialise
in interfaceBlockQuoteFactory
- Parameters:
context
- The context
-
createBlockQuote
public com.caplin.motif.datasource.Message createBlockQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade, BlockSubmitWrapper submitEvent, com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote) throws QuoteCreationException Description copied from interface:BlockQuoteFactory
Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote object- Specified by:
createBlockQuote
in interfaceBlockQuoteFactory
- Parameters:
blockTrade
- The FX Integration API RFS Trade objectsubmitEvent
- A wrapper for the submitTradeEventtrapiQuote
- The RET quote object- Throws:
QuoteCreationException
- if a quote cannot be created.
-
createSalesBlockQuote
public com.caplin.motif.datasource.Message createSalesBlockQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade, BlockSubmitWrapper submitEvent, com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote, ProfitConversionRate profitConversionRate) throws QuoteCreationException Description copied from interface:BlockQuoteFactory
FX Sales - Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote object- Specified by:
createSalesBlockQuote
in interfaceBlockQuoteFactory
- Parameters:
blockTrade
- The FX Integration API RFS Trade objectsubmitEvent
- A wrapper for the submitTradeEventtrapiQuote
- The RET quote objectprofitConversionRate
- The object containing the in house currency and its rates, to be used in profit calculations- Throws:
QuoteCreationException
- if a quote cannot be created.
-