Interface OrderFactory

  • All Known Implementing Classes:
    FxMotifOrderTranslator

    public interface OrderFactory
    Sets data on a TrAPI order FXOrder from a given MotifOrderStrategy strategy and Order order.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  OrderFactory.Context  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void createOrder​(java.lang.String user, java.lang.String retClientName, OrderTypeInStrategy orderType, com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy strategy, com.caplin.motif.fx.trading.orders.submission.Order order, com.caplin.ret.trapi.fx.order.transaction.strategy.submit.SubmissionFXOrder trapiFXOrder, boolean isSales)
      Sets data on a FXOrder from the given strategy and order
      void initialise​(OrderFactory.Context context)
      Initialises the factory.
    • Method Detail

      • createOrder

        void createOrder​(java.lang.String user,
                         java.lang.String retClientName,
                         OrderTypeInStrategy orderType,
                         com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy strategy,
                         com.caplin.motif.fx.trading.orders.submission.Order order,
                         com.caplin.ret.trapi.fx.order.transaction.strategy.submit.SubmissionFXOrder trapiFXOrder,
                         boolean isSales)
                  throws java.lang.Exception
        Sets data on a FXOrder from the given strategy and order
        Parameters:
        user - the user
        retClientName - the ret client name
        orderType - OrderTypeInStrategy
        strategy - a strategy
        order - an order
        trapiFXOrder - the order to be built
        isSales - Whether or not the order is being entered a Sales Trader.
        Throws:
        java.lang.Exception