Class DefaultSalesSwapQuoteFactory
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.extension.quote.DefaultSalesSwapQuoteFactory
- All Implemented Interfaces:
SalesSwapQuoteFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSalesSwapQuoteFactory(SalesQuoteUtility salesQuoteUtility, DefaultSwapQuoteFactory defaultSwapQuoteFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesSwapQuotecreateSalesSwapQuote(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 objectvoidinitialise(Context context) To be invoked by the toolkit.
-
Constructor Details
-
DefaultSalesSwapQuoteFactory
public DefaultSalesSwapQuoteFactory(SalesQuoteUtility salesQuoteUtility, DefaultSwapQuoteFactory defaultSwapQuoteFactory)
-
-
Method Details
-
initialise
Description copied from interface:SalesSwapQuoteFactoryTo be invoked by the toolkit. The context provides objects that aid in creating the Quote object.- Specified by:
initialisein 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:SalesSwapQuoteFactoryInvoked when the toolkit receives a RET sales swap quote and requires the factory to build the FX API quote object- Specified by:
createSalesSwapQuotein 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
-