Class DefaultSalesQuoteFactory

java.lang.Object
com.caplin.motif.fx.ret.fxtrading.extension.quote.DefaultSalesQuoteFactory
All Implemented Interfaces:
SalesQuoteFactory

public class DefaultSalesQuoteFactory extends Object implements SalesQuoteFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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
    To be invoked by the toolkit.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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.