Interface OrderEditor

All Known Implementing Classes:
PerLegOrderEditor, PerStrategyOrderEditor

public interface OrderEditor

An OrderEditor maps data from a given Strategy and corresponding order to a TrAPI order.

OrderEditor gets injected in OrderAdapterInitialiser.

  • Nested Class Summary

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

    Modifier and Type
    Method
    Description
    void
    Initialises the OrderEditor.
    boolean
    updateOrder(com.caplin.ret.trapi.fx.FXOrder trapiFXOrder, Strategy strategy, Order order, EditStrategyRequest editStrategyRequest)
    Updates a given FXOrder with changes from strategy and order.
  • Method Details

    • initialise

      void initialise(OrderEditor.Context context)
      Initialises the OrderEditor.
    • updateOrder

      boolean updateOrder(com.caplin.ret.trapi.fx.FXOrder trapiFXOrder, Strategy strategy, Order order, EditStrategyRequest editStrategyRequest) throws Exception
      Updates a given FXOrder with changes from strategy and order.
      Parameters:
      trapiFXOrder - FXOrder that needs updating data.
      strategy - Strategy with changed data
      order - Order with changed data
      editStrategyRequest - represents a front end request to edit a previously submitted single order or multi-order strategy.
      Returns:
      true if the order was updated, false if not.
      Throws:
      Exception