Class DefaultSalesSwapQuoteFactory
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.extension.quote.DefaultSalesSwapQuoteFactory
- All Implemented Interfaces:
SalesSwapQuoteFactory
-
Constructor Summary
ConstructorDescriptionDefaultSalesSwapQuoteFactory
(SalesQuoteUtility salesQuoteUtility, DefaultSwapQuoteFactory defaultSwapQuoteFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesSwapQuote
createSalesSwapQuote
(com.caplin.generated.motif.fx.trading.rfs.RFSTrade rfsTrade, 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 swap quote and requires the factory to build the FX API quote objectvoid
initialise
(Context context) To be invoked by the toolkit.
-
Constructor Details
-
DefaultSalesSwapQuoteFactory
public DefaultSalesSwapQuoteFactory(SalesQuoteUtility salesQuoteUtility, DefaultSwapQuoteFactory defaultSwapQuoteFactory)
-
-
Method Details
-
initialise
Description copied from interface:SalesSwapQuoteFactory
To be invoked by the toolkit. The context provides objects that aid in creating the Quote object.- Specified by:
initialise
in interfaceSalesSwapQuoteFactory
- Parameters:
context
- The context
-
createSalesSwapQuote
public com.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesSwapQuote createSalesSwapQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade rfsTrade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, @Nullable ProfitConversionRate profitConversionRate) Description copied from interface:SalesSwapQuoteFactory
Invoked when the toolkit receives a RET sales swap quote and requires the factory to build the FX API quote object- Specified by:
createSalesSwapQuote
in interfaceSalesSwapQuoteFactory
- Parameters:
rfsTrade
- The FX Integration API RFS Trade objectquote
- The RET sales quotepricingSide
- The side, defining whether just BID or ASK values should be set. Or both.profitConversionRate
- The object containing the in house currency and its rates, to be used in profit calculations
-