Interface OrderFactory
-
- All Known Implementing Classes:
FxMotifOrderTranslator
public interface OrderFactory
Sets data on a TrAPI orderFXOrder
from a givenMotifOrderStrategy
strategy andOrder
order.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OrderFactory.Context
-
Method Summary
All Methods Instance Methods Abstract 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)
Sets data on aFXOrder
from the given strategy and ordervoid
initialise(OrderFactory.Context context)
Initialises the factory.
-
-
-
Method Detail
-
initialise
void initialise(OrderFactory.Context context)
Initialises the factory. This method will be called beforecreateOrder(String, String, OrderTypeInStrategy, MotifOrderStrategy, Order, SubmissionFXOrder, boolean)
.
-
createOrder
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
Sets data on aFXOrder
from the given strategy and order- 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
-
-