public class FxMotifStrategyDetailsGenerator extends java.lang.Object implements StrategyDetailsGenerator
StrategyDetailsGenerator
that supports the default FxMotif.Constructor and Description |
---|
FxMotifStrategyDetailsGenerator(OrderDetailsGenerator orderDetailsGenerator) |
Modifier and Type | Method and Description |
---|---|
void |
initialise(OrderDetailsGenerator.Context context)
This notifies the
StrategyDetailsGenerator that it is about to be loaded. |
com.caplin.motif.fx.trading.orders.details.StrategyBuilder |
populateStrategyBuilder(com.caplin.ret.trapi.fx.order.strategy.StrategyTree tree,
com.caplin.motif.fx.trading.orders.details.StrategyBuilder builder)
Creates a new
StrategyBuilder and populates it with fields from the given StrategyTree . |
void |
updateStrategyBuilderWithDeletedOrder(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder,
com.caplin.ret.trapi.fx.order.OrderEvent event)
Updates an existing StrategyBuilder with fields from an
OrderEvent . |
void |
updateStrategyBuilderWithOrderHistory(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder,
com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
Updates an existing StrategyBuilder with fields from
OrderEventHistories . |
public FxMotifStrategyDetailsGenerator(OrderDetailsGenerator orderDetailsGenerator)
public void initialise(OrderDetailsGenerator.Context context)
StrategyDetailsGenerator
This notifies the StrategyDetailsGenerator
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
StrategyDetailsGenerator
is loaded by the system.
initialise
in interface StrategyDetailsGenerator
public com.caplin.motif.fx.trading.orders.details.StrategyBuilder populateStrategyBuilder(com.caplin.ret.trapi.fx.order.strategy.StrategyTree tree, com.caplin.motif.fx.trading.orders.details.StrategyBuilder builder) throws com.caplin.motif.fx.trading.orders.OrderConfigurationException
StrategyDetailsGenerator
StrategyBuilder
and populates it with fields from the given StrategyTree
.populateStrategyBuilder
in interface StrategyDetailsGenerator
com.caplin.motif.fx.trading.orders.OrderConfigurationException
public void updateStrategyBuilderWithDeletedOrder(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEvent event)
StrategyDetailsGenerator
OrderEvent
.updateStrategyBuilderWithDeletedOrder
in interface StrategyDetailsGenerator
public void updateStrategyBuilderWithOrderHistory(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder, com.caplin.ret.trapi.fx.order.OrderEventHistories orderHistory)
StrategyDetailsGenerator
OrderEventHistories
.updateStrategyBuilderWithOrderHistory
in interface StrategyDetailsGenerator
Copyright © 2019 Caplin Systems.