Class DefaultSalesQuoteFactory
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.extension.quote.DefaultSalesQuoteFactory
- All Implemented Interfaces:
SalesQuoteFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesForwardQuote
createSalesFwdQuote
(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, ProfitConversionRate profitConversionRate) Invoked when the toolkit receives a RET sales forward quote and requires the factory to build the FX API quote objectcom.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesSpotQuote
createSalesSpotQuote
(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, ProfitConversionRate profitConversionRate) Invoked when the toolkit receives a RET sales spot quote and requires the factory to build the FX API quote objectvoid
initialise
(Context context) To be invoked by the toolkit.
-
Constructor Details
-
DefaultSalesQuoteFactory
-
-
Method Details
-
initialise
Description copied from interface:SalesQuoteFactory
To be invoked by the toolkit. The context provides objects that aid in creating the Quote object.- Specified by:
initialise
in interfaceSalesQuoteFactory
- Parameters:
context
- The context
-
createSalesSpotQuote
public com.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesSpotQuote createSalesSpotQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, @Nullable ProfitConversionRate profitConversionRate) throws QuoteCreationException Description copied from interface:SalesQuoteFactory
Invoked when the toolkit receives a RET sales spot quote and requires the factory to build the FX API quote object- Specified by:
createSalesSpotQuote
in interfaceSalesQuoteFactory
- Parameters:
trade
- The FX Integration API RFS Trade objectquote
- The RET Sales QuoteprofitConversionRate
- The object containing the in house currency and its rates, to be used in profit calculations- Throws:
QuoteCreationException
- if a quote cannot be created.
-
createSalesFwdQuote
public com.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesForwardQuote createSalesFwdQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, @Nullable ProfitConversionRate profitConversionRate) throws QuoteCreationException Description copied from interface:SalesQuoteFactory
Invoked when the toolkit receives a RET sales forward quote and requires the factory to build the FX API quote object- Specified by:
createSalesFwdQuote
in interfaceSalesQuoteFactory
- Parameters:
trade
- The FX Integration API RFS Trade objectquote
- The RET Sales QuoteprofitConversionRate
- The object containing the in house currency and its rates, to be used in profit calculations- Throws:
QuoteCreationException
- if a quote cannot be created.
-