public class OrderAcceptEvent extends ResponderEvent<MotifTrade>
An event to notify the client that the submission of the order or order strategy has been completed, and the order (or orders) is now active.
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT_EVENT
The name of the transition representing this event
|
fields
Constructor and Description |
---|
OrderAcceptEvent(List<String> orderIDs)
Creates an OrderAcceptEvent with the event name "Accept" and multiple order IDs.
|
OrderAcceptEvent(String orderID)
Creates an OrderAcceptEvent with the event name "Accept" and the provided order ID.
|
public static final String ACCEPT_EVENT
public OrderAcceptEvent(String orderID)
orderID
- The order id to send (usually the parent order ID).public OrderAcceptEvent(List<String> orderIDs)
orderIDs
- The order IDs of each of the orders in the strategy. The list must be ordered according to the semantics of the strategy, for
example if the strategy is an IfDoneOCOStrategy
the first order ID in the list should be the parent order ID, followed by the two
order IDs for the OCO part of the strategy. This list will be sent as a comma separated string on the field "OrderID".Copyright © 2015 Caplin Systems.