public class DefaultSalesQuoteFactory extends java.lang.Object implements SalesQuoteFactory
Constructor and Description |
---|
DefaultSalesQuoteFactory() |
Modifier and Type | Method and Description |
---|---|
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,
ProfitConversionRate profitConversionRate)
Invoked when the toolkit receives a RET sales forward quote and requires the factory to build the FX API quote object
|
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,
ProfitConversionRate profitConversionRate)
Invoked when the toolkit receives a RET sales spot quote and requires the factory to build the FX API quote object
|
void |
initialise(Context context)
To be invoked by the toolkit.
|
public void initialise(Context context)
SalesQuoteFactory
initialise
in interface SalesQuoteFactory
context
- The contextpublic 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
SalesQuoteFactory
createSalesSpotQuote
in interface SalesQuoteFactory
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 calculationsQuoteCreationException
- if a quote cannot be created.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
SalesQuoteFactory
createSalesFwdQuote
in interface SalesQuoteFactory
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 calculationsQuoteCreationException
- if a quote cannot be created.Copyright © 2019 Caplin Systems.