public interface OrderLastLookListener
BarracudaOverridesModule
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 an OrderLastLookException
Implementations of this class may validate the FX API objects passed to
them, and modify the Cubiq 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.Modifier and Type | Method and Description |
---|---|
void |
onStrategyEdited(Strategy strategy,
LinkedOrderModificationRequest linkedModificationRequest)
Callback for when a strategy has been edited.
|
void |
onStrategySubmitted(MotifOrderStrategy motifOrderStrategy,
LinkedOrderRequest linkedOrderRequest)
Callback for when a strategy has been submitted.
|
void onStrategySubmitted(MotifOrderStrategy motifOrderStrategy, LinkedOrderRequest linkedOrderRequest) throws OrderLastLookException
LinkedOrderRequest
is provided and may be modified.motifOrderStrategy
- The FX API strategy object, representing the submitted strategylinkedOrderRequest
- The Cubiq API object to be sentOrderLastLookException
- Thrown if the motifOrderStrategy is invalid, must provide an error message and codevoid onStrategyEdited(Strategy strategy, LinkedOrderModificationRequest linkedModificationRequest) throws OrderLastLookException
LinkedOrderModificationRequest
is provided and may be modified.strategy
- The FX API strategy object, representing the edited strategylinkedModificationRequest
- The Cubiq API object to be sentOrderLastLookException
- Thrown if the edited strategy is invalid, must provide an error message and code