Class PerLegOrderFactory
- java.lang.Object
-
- com.caplin.motif.fx.ret.orders.extension.submit.PerLegOrderFactory
-
- All Implemented Interfaces:
OrderFactory
@Deprecated public class PerLegOrderFactory extends java.lang.Object implements OrderFactory
Deprecated.scheduled to be removed in the next releaseBuild TrAPI order from given strategy and order. Reads data common to strategy and order by leg order and sets them to the TrAPI order.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.orders.strategy.builder.OrderFactory
OrderFactory.Context
-
-
Constructor Summary
Constructors Constructor Description PerLegOrderFactory()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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)
Deprecated.Sets data on aFXOrder
from the given strategy and ordervoid
initialise(OrderFactory.Context context)
Deprecated.Initialises the factory.
-
-
-
Method Detail
-
initialise
public void initialise(OrderFactory.Context context)
Deprecated.Description copied from interface:OrderFactory
Initialises the factory. This method will be called beforeOrderFactory.createOrder(String, String, OrderTypeInStrategy, MotifOrderStrategy, Order, SubmissionFXOrder, boolean)
.- Specified by:
initialise
in interfaceOrderFactory
-
createOrder
public 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
Deprecated.Description copied from interface:OrderFactory
Sets data on aFXOrder
from the given strategy and order- Specified by:
createOrder
in interfaceOrderFactory
- Parameters:
user
- the userretClientName
- the ret client nameorderType
- OrderTypeInStrategystrategy
- a strategyorder
- an ordertrapiFXOrder
- the order to be builtisSales
- Whether or not the order is being entered a Sales Trader.- Throws:
java.lang.Exception
-
-