Interface OrderDetailsGenerator
-
- All Known Implementing Classes:
FxMotifOrderDetailsGenerator
public interface OrderDetailsGenerator
An interface for working withOrderBuilder
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OrderDetailsGenerator.Context
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialise(OrderDetailsGenerator.Context context)
This notifies theOrderDetailsGenerator
that it is about to be loaded.void
populateOrderBuilder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.strategy.OrderNode orderNode)
Creates a newOrderBuilder
and populates it with fields from the givenOrderNode
.void
updateOrderBuilderForDeletedOrder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEvent event)
Updates an existing OrderBuilder with fields from anOrderEvent
.void
updateOrderBuilderWithHistory(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
Updates an existing OrderBuilder with fields fromOrderEventHistories
.
-
-
-
Method Detail
-
initialise
void initialise(OrderDetailsGenerator.Context context)
This notifies the
OrderDetailsGenerator
that it is about to be loaded. This method will be called by the system once.You should use this method to perform any initialisation required before the
OrderDetailsGenerator
is loaded by the system.
-
populateOrderBuilder
void populateOrderBuilder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.strategy.OrderNode orderNode) throws com.caplin.motif.fx.trading.orders.OrderConfigurationException
Creates a newOrderBuilder
and populates it with fields from the givenOrderNode
.- Throws:
com.caplin.motif.fx.trading.orders.OrderConfigurationException
-
updateOrderBuilderForDeletedOrder
void updateOrderBuilderForDeletedOrder(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEvent event)
Updates an existing OrderBuilder with fields from anOrderEvent
.
-
updateOrderBuilderWithHistory
void updateOrderBuilderWithHistory(com.caplin.motif.fx.trading.orders.details.OrderBuilder builder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
Updates an existing OrderBuilder with fields fromOrderEventHistories
.
-
-