Class DefaultSalesSwapQuoteFactory
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.extension.quote.DefaultSalesSwapQuoteFactory
-
- All Implemented Interfaces:
SalesSwapQuoteFactory
public class DefaultSalesSwapQuoteFactory extends java.lang.Object implements SalesSwapQuoteFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultSalesSwapQuoteFactory(SalesQuoteUtility salesQuoteUtility, DefaultSwapQuoteFactory defaultSwapQuoteFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, 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 Detail
-
DefaultSalesSwapQuoteFactory
public DefaultSalesSwapQuoteFactory(SalesQuoteUtility salesQuoteUtility, DefaultSwapQuoteFactory defaultSwapQuoteFactory)
-
-
Method Detail
-
initialise
public void initialise(Context context)
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
-
-