Interface BlockQuoteFactory

  • All Known Implementing Classes:
    DefaultBlockQuoteFactory

    public interface BlockQuoteFactory
    Invoked when the toolkit receives a Block Quote from RET and requires an FX API Block Quote.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.caplin.motif.datasource.Message createBlockQuote​(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade, BlockSubmitWrapper blockSubmitWrapper, com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote)
      Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote object
      com.caplin.motif.datasource.Message createSalesBlockQuote​(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade, BlockSubmitWrapper blockSubmitWrapper, com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote, ProfitConversionRate profitConversionRate)
      FX Sales - Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote object
      void initialise​(Context context)
      Invoked by the toolkit.
    • Method Detail

      • initialise

        void initialise​(Context context)
        Invoked by the toolkit. The context provides objects that aid in creating the Quote object.
        Parameters:
        context - The context
      • createBlockQuote

        com.caplin.motif.datasource.Message createBlockQuote​(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade,
                                                             BlockSubmitWrapper blockSubmitWrapper,
                                                             com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote)
                                                      throws QuoteCreationException
        Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote object
        Parameters:
        blockTrade - The FX Integration API RFS Trade object
        blockSubmitWrapper - A wrapper for the submitTradeEvent
        trapiQuote - The RET quote object
        Throws:
        QuoteCreationException - if a quote cannot be created.
      • createSalesBlockQuote

        com.caplin.motif.datasource.Message createSalesBlockQuote​(com.caplin.generated.motif.fx.trading.rfs.RFSTrade blockTrade,
                                                                  BlockSubmitWrapper blockSubmitWrapper,
                                                                  com.caplin.ret.trapi.fx.execution.QuoteEvent trapiQuote,
                                                                  @Nullable
                                                                  ProfitConversionRate profitConversionRate)
                                                           throws QuoteCreationException
        FX Sales - Invoked when the toolkit receives a RET block quote and requires the factory to build the FX API quote object
        Parameters:
        blockTrade - The FX Integration API RFS Trade object
        blockSubmitWrapper - A wrapper for the submitTradeEvent
        trapiQuote - The RET quote object
        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.