Class FxMotifOrderTranslator
- java.lang.Object
-
- com.caplin.motif.fx.ret.orders.extension.submit.FxMotifOrderTranslator
-
- All Implemented Interfaces:
OrderFactory
public class FxMotifOrderTranslator extends java.lang.Object implements OrderFactory
AnOrderFactory
which configures TrAPI FX Orders according to the FX Professional Motif Order Submission Message specification.- See Also:
- Order Submission Message specification
-
-
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 FxMotifOrderTranslator(InjectableOrderProperties orderProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createOrder(java.lang.String username, java.lang.String retClientName, OrderTypeInStrategy orderType, com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy userSubmittedStrategy, com.caplin.motif.fx.trading.orders.submission.Order userSubmittedOrder, com.caplin.ret.trapi.fx.order.transaction.strategy.submit.SubmissionFXOrder orderToBeConfigured, boolean isSales)
Sets data on aFXOrder
from the given strategy and ordervoid
initialise(OrderFactory.Context context)
Initialises the factory.
-
-
-
Constructor Detail
-
FxMotifOrderTranslator
public FxMotifOrderTranslator(InjectableOrderProperties orderProperties)
-
-
Method Detail
-
initialise
public void initialise(OrderFactory.Context context)
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 username, java.lang.String retClientName, OrderTypeInStrategy orderType, com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy userSubmittedStrategy, com.caplin.motif.fx.trading.orders.submission.Order userSubmittedOrder, com.caplin.ret.trapi.fx.order.transaction.strategy.submit.SubmissionFXOrder orderToBeConfigured, boolean isSales) throws java.lang.Exception
Description copied from interface:OrderFactory
Sets data on aFXOrder
from the given strategy and order- Specified by:
createOrder
in interfaceOrderFactory
- Parameters:
username
- the userretClientName
- the ret client nameorderType
- OrderTypeInStrategyuserSubmittedStrategy
- a strategyuserSubmittedOrder
- an orderorderToBeConfigured
- the order to be builtisSales
- Whether or not the order is being entered a Sales Trader.- Throws:
java.lang.Exception
-
-