Class DefaultQuoteFactory
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.extension.quote.DefaultQuoteFactory
- All Implemented Interfaces:
QuoteFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.generated.motif.fx.rates.QuoteTypesDef.ForwardQuotecreateFwdQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide) Invoked when the toolkit receives a RET forward quote and requires the factory to build the FX API quote objectcom.caplin.generated.motif.fx.rates.QuoteTypesDef.SpotQuotecreateSpotQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide) Invoked when the toolkit receives a RET spot quote and requires the factory to build the FX API quote objectvoidinitialise(Context context) Invoked by the toolkit.
-
Constructor Details
-
DefaultQuoteFactory
-
-
Method Details
-
initialise
Description copied from interface:QuoteFactoryInvoked by the toolkit. The context provides objects that aid in creating the Quote object.- Specified by:
initialisein interfaceQuoteFactory- Parameters:
context- The context
-
createSpotQuote
public com.caplin.generated.motif.fx.rates.QuoteTypesDef.SpotQuote createSpotQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide) Description copied from interface:QuoteFactoryInvoked when the toolkit receives a RET spot quote and requires the factory to build the FX API quote object- Specified by:
createSpotQuotein interfaceQuoteFactory- Parameters:
trade- The FX Integration API RFS Trade objectquote- The RET QuotepricingSide- The side, defining whether just Bid or Ask values should be set, or both.
-
createFwdQuote
public com.caplin.generated.motif.fx.rates.QuoteTypesDef.ForwardQuote createFwdQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade trade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide) Description copied from interface:QuoteFactoryInvoked when the toolkit receives a RET forward quote and requires the factory to build the FX API quote object- Specified by:
createFwdQuotein interfaceQuoteFactory- Parameters:
trade- The FX Integration API RFS Trade objectquote- The RET QuotepricingSide- The side, defining whether just Bid or Ask values should be set, or both.
-