public interface StrategyDetailsRequestListener
A StrategyDetailsRequestListener instance will be notified of incoming client requests for the details of previously submitted order strategies.
Modifier and Type | Method and Description |
---|---|
void |
onStrategyDetailsDiscard(StrategySubjectInfo subjectInfo)
Called to notify you that a client is no longer interested in the details of the previously
requested order strategy.
|
void |
onStrategyDetailsRequest(StrategySubjectInfo subjectInfo,
StrategyDetailsCallback callback)
Called to notify you that a client has requested details for a previously submitted order
strategy.
|
void onStrategyDetailsRequest(StrategySubjectInfo subjectInfo, StrategyDetailsCallback callback)
Called to notify you that a client has requested details for a previously submitted order
strategy. This callback is generally called immediately after you return your implementation of
StrategyDetailsRequestListener from the StrategyDetailsRequestListenerFactory.createStrategyDetailsRequestListener(StrategySubjectInfo)
method.
Note that the StrategySubjectInfo representing the request is for a single order, and the
order ID you retrieve by calling StrategySubjectInfo.getOrderID()
is the ID for the order and
not the strategy. You are responsible for determining if the requested order is part of a multi-order
strategy, and if so you must return the details of the whole strategy and not just this specific order.
subjectInfo
- A domain object representing the request for the order strategy details.callback
- A callback object used for sending the details (or a failure response) back to the client.void onStrategyDetailsDiscard(StrategySubjectInfo subjectInfo)
subjectInfo
- A domain object representing the original request for the order strategy
details, which the client is no longer interested in.Copyright © 2015 Caplin Systems.