Interface OrderLastLookListener
-
public interface OrderLastLookListener
To provide an implementation of this class please seeBarracudaOverridesModule
If an implementation of this class is provided, then the FX API's default validation will be turned off. It is up to this class to validate and throw anOrderLastLookException
Implementations of this class may validate the FX API objects passed to them, and modify the bcdfx API objects passed to them. Implementations of this class will be called whenever a srategy is first submitted. Implementations of this class will be called whenever a strategy has been edited.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
onStrategyEditAccept(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder, java.lang.String username, java.lang.String type, java.util.List<com.bcdfx.model.event.lifecycle.fx.OrderData> orders)
void
onStrategyEdited(com.caplin.motif.fx.trading.orders.details.Strategy strategy, com.bcdfx.api.servicerequest.LinkedOrderModificationRequest linkedModificationRequest)
Callback for when a strategy has been edited.void
onStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy motifOrderStrategy, com.bcdfx.api.servicerequest.FixingOrderRequest fixingOrderRequest)
Callback for when a strategy has been submitted.void
onStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy motifOrderStrategy, com.bcdfx.api.servicerequest.LinkedOrderRequest linkedOrderRequest)
Callback for when a strategy has been submitted.
-
-
-
Method Detail
-
onStrategySubmitted
void onStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy motifOrderStrategy, com.bcdfx.api.servicerequest.LinkedOrderRequest linkedOrderRequest) throws OrderLastLookException
Callback for when a strategy has been submitted. TheLinkedOrderRequest
is provided and may be modified.- Parameters:
motifOrderStrategy
- The FX API strategy object, representing the submitted strategylinkedOrderRequest
- The bcdfx API object to be sent- Throws:
OrderLastLookException
- Thrown if the motifOrderStrategy is invalid, must provide an error message and code
-
onStrategySubmitted
void onStrategySubmitted(com.caplin.motif.fx.trading.orders.submission.strategy.MotifOrderStrategy motifOrderStrategy, com.bcdfx.api.servicerequest.FixingOrderRequest fixingOrderRequest) throws OrderLastLookException
Callback for when a strategy has been submitted. TheFixingOrderRequest
is provided and may be modified.- Parameters:
motifOrderStrategy
- The FX API strategy object, representing the submitted strategyfixingOrderRequest
- The bcdfx API object to be sent- Throws:
OrderLastLookException
- Thrown if the motifOrderStrategy is invalid, must provide an error message and code
-
onStrategyEdited
void onStrategyEdited(com.caplin.motif.fx.trading.orders.details.Strategy strategy, com.bcdfx.api.servicerequest.LinkedOrderModificationRequest linkedModificationRequest) throws OrderLastLookException
Callback for when a strategy has been edited. TheLinkedOrderModificationRequest
is provided and may be modified.- Parameters:
strategy
- The FX API strategy object, representing the edited strategylinkedModificationRequest
- The bcdfx API object to be sent- Throws:
OrderLastLookException
- Thrown if the edited strategy is invalid, must provide an error message and code
-
onStrategyEditAccept
default void onStrategyEditAccept(com.caplin.motif.fx.trading.orders.details.StrategyBuilder strategyBuilder, java.lang.String username, java.lang.String type, java.util.List<com.bcdfx.model.event.lifecycle.fx.OrderData> orders)
-
-