Class DefaultSalesSwapQuoteFactory

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

public class DefaultSalesSwapQuoteFactory extends Object implements SalesSwapQuoteFactory
  • Constructor Details

  • Method Details

    • initialise

      public void initialise(Context context)
      Description copied from interface: SalesSwapQuoteFactory
      To be invoked by the toolkit. The context provides objects that aid in creating the Quote object.
      Specified by:
      initialise in interface SalesSwapQuoteFactory
      Parameters:
      context - The context
    • createSalesSwapQuote

      public com.caplin.generated.motif.fx.rates.QuoteTypesDef.SalesSwapQuote createSalesSwapQuote(com.caplin.generated.motif.fx.trading.rfs.RFSTrade rfsTrade, com.caplin.ret.trapi.fx.execution.QuoteEvent quote, com.caplin.motif.fx.trading.PricingSide pricingSide, @Nullable ProfitConversionRate profitConversionRate)
      Description copied from interface: SalesSwapQuoteFactory
      Invoked when the toolkit receives a RET sales swap quote and requires the factory to build the FX API quote object
      Specified by:
      createSalesSwapQuote in interface SalesSwapQuoteFactory
      Parameters:
      rfsTrade - The FX Integration API RFS Trade object
      quote - The RET sales quote
      pricingSide - The side, defining whether just BID or ASK values should be set. Or both.
      profitConversionRate - The object containing the in house currency and its rates, to be used in profit calculations