public class FxMotifOrderTranslator extends java.lang.Object implements OrderFactory
OrderFactory
which configures TrAPI FX Orders according to the FX Professional Motif
Order Submission Message specification.OrderFactory.Context
Constructor and Description |
---|
FxMotifOrderTranslator() |
Modifier and Type | Method and 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 a
FXOrder from the given strategy and order |
void |
initialise(OrderFactory.Context context)
Initialises the factory.
|
public void initialise(OrderFactory.Context context)
OrderFactory
OrderFactory.createOrder(String, String, OrderTypeInStrategy, MotifOrderStrategy, Order, SubmissionFXOrder, boolean)
.initialise
in interface OrderFactory
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
OrderFactory
FXOrder
from the given strategy and ordercreateOrder
in interface OrderFactory
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.java.lang.Exception
Copyright © 2016 Caplin Systems.