Class PerLegOrderEditor
- java.lang.Object
-
- com.caplin.motif.fx.ret.orders.extension.edit.PerLegOrderEditor
-
- All Implemented Interfaces:
OrderEditor
public class PerLegOrderEditor extends java.lang.Object implements OrderEditor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.orders.edit.OrderEditor
OrderEditor.Context
-
-
Constructor Summary
Constructors Constructor Description PerLegOrderEditor()
PerLegOrderEditor(InjectableCustomFieldValues customFieldValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialise(OrderEditor.Context context)
Initialises the OrderEditor.boolean
updateOrder(com.caplin.ret.trapi.fx.FXOrder trapiFXOrder, com.caplin.motif.fx.trading.orders.details.Strategy strategy, com.caplin.motif.fx.trading.orders.details.Order order, com.caplin.motif.fx.trading.orders.edit.EditStrategyRequest editStrategyRequest)
Updates a given FXOrder with changes from strategy and order.
-
-
-
Constructor Detail
-
PerLegOrderEditor
public PerLegOrderEditor()
-
PerLegOrderEditor
public PerLegOrderEditor(InjectableCustomFieldValues customFieldValues)
-
-
Method Detail
-
initialise
public void initialise(OrderEditor.Context context)
Description copied from interface:OrderEditor
Initialises the OrderEditor.- Specified by:
initialise
in interfaceOrderEditor
-
updateOrder
public boolean updateOrder(com.caplin.ret.trapi.fx.FXOrder trapiFXOrder, com.caplin.motif.fx.trading.orders.details.Strategy strategy, com.caplin.motif.fx.trading.orders.details.Order order, com.caplin.motif.fx.trading.orders.edit.EditStrategyRequest editStrategyRequest) throws java.lang.Exception
Description copied from interface:OrderEditor
Updates a given FXOrder with changes from strategy and order.- Specified by:
updateOrder
in interfaceOrderEditor
- Parameters:
trapiFXOrder
- FXOrder that needs updating data.strategy
- Strategy with changed dataorder
- Order with changed dataeditStrategyRequest
- 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:
java.lang.Exception
-
-