Class DefaultSalesQuoteFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • 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: SalesQuoteFactory
        To be invoked by the toolkit. The context provides objects that aid in creating the Quote object.
        Specified by:
        initialise in interface SalesQuoteFactory
        Parameters:
        context - The context
      • createSalesSpotQuote

        public 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
        Description copied from interface: SalesQuoteFactory
        Invoked when the toolkit receives a RET sales spot quote and requires the factory to build the FX API quote object
        Specified by:
        createSalesSpotQuote in interface SalesQuoteFactory
        Parameters:
        trade - The FX Integration API RFS Trade object
        quote - The RET Sales Quote
        profitConversionRate - The object containing the in house currency and its rates, to be used in profit calculations
        Throws:
        QuoteCreationException - if a quote cannot be created.
      • createSalesFwdQuote

        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
        Description copied from interface: SalesQuoteFactory
        Invoked when the toolkit receives a RET sales forward quote and requires the factory to build the FX API quote object
        Specified by:
        createSalesFwdQuote in interface SalesQuoteFactory
        Parameters:
        trade - The FX Integration API RFS Trade object
        quote - The RET Sales Quote
        profitConversionRate - The object containing the in house currency and its rates, to be used in profit calculations
        Throws:
        QuoteCreationException - if a quote cannot be created.