T
- extends an OrderStrategy
public interface OrderSubmissionListener<T extends OrderStrategy>
An OrderSubmissionListener instance will be notified of client events regarding the submission of new orders.
Note, that this does not deal with the state or events regarding the order after the submitted state.
Modifier and Type | Method and Description |
---|---|
void |
onTradeClosed(T strategy)
Called in order to close/cancel the trade
|
void |
orderStrategySubmitted(T strategy)
Called on the initiation of Limit Order trades, to notify the backend that
a Limit Order has been submitted for the specified OrderStrategy
|
void orderStrategySubmitted(T strategy)
strategy
- The object representing the clients submission of the trade,
containing all the information required to submit a trade
to a backend system.void onTradeClosed(T strategy)
strategy
- The object representing the clients request to close the
trade during the submission phase, containing all the
information required to cancel/close the trade in the backend
system.Copyright © 2015 Caplin Systems.