Class OrderSubmissionManager

java.lang.Object
com.caplin.motif.fx.ret.orders.trading.OrderSubmissionManager
All Implemented Interfaces:
OrderSubmissionListener<MotifOrderStrategy>

public class OrderSubmissionManager extends Object implements OrderSubmissionListener<MotifOrderStrategy>
  • Constructor Details

  • Method Details

    • orderStrategySubmitted

      public void orderStrategySubmitted(MotifOrderStrategy orderStrategy)
      Description copied from interface: OrderSubmissionListener
      Called on the initiation of Limit Order trades, to notify the backend that a Limit Order has been submitted for the specified OrderStrategy
      Specified by:
      orderStrategySubmitted in interface OrderSubmissionListener<MotifOrderStrategy>
      Parameters:
      orderStrategy - The object representing the clients submission of the trade, containing all the information required to submit a trade to a backend system.
    • onTradeClosed

      public void onTradeClosed(MotifOrderStrategy orderStrategy)
      Description copied from interface: OrderSubmissionListener
      Called in order to close/cancel the trade
      Specified by:
      onTradeClosed in interface OrderSubmissionListener<MotifOrderStrategy>
      Parameters:
      orderStrategy - The object representing the clients request to close the trade during the submission phase, containing all the information required to cancel/close the trade in the backend system.