Class DefaultQuoteFactory

  • All Implemented Interfaces:
    QuoteFactory

    public class DefaultQuoteFactory
    extends java.lang.Object
    implements QuoteFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)
      Invoked when the toolkit receives a RET forward quote and requires the factory to build the FX API quote object
      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)
      Invoked when the toolkit receives a RET spot quote and requires the factory to build the FX API quote object
      void initialise​(Context context)
      Invoked by the toolkit.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initialise

        public void initialise​(Context context)
        Description copied from interface: QuoteFactory
        Invoked by the toolkit. The context provides objects that aid in creating the Quote object.
        Specified by:
        initialise in interface QuoteFactory
        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: QuoteFactory
        Invoked when the toolkit receives a RET spot quote and requires the factory to build the FX API quote object
        Specified by:
        createSpotQuote in interface QuoteFactory
        Parameters:
        trade - The FX Integration API RFS Trade object
        quote - The RET Quote
        pricingSide - 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: QuoteFactory
        Invoked when the toolkit receives a RET forward quote and requires the factory to build the FX API quote object
        Specified by:
        createFwdQuote in interface QuoteFactory
        Parameters:
        trade - The FX Integration API RFS Trade object
        quote - The RET Quote
        pricingSide - The side, defining whether just Bid or Ask values should be set, or both.