|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FIXOrderManagerAutoRejectHandler
The Interface to handle automatic order reject or cancel reject in QWFIX Order Manager.
Use FIXSessionOrderManager.setAutoRejectHandler(FIXOrderManagerAutoRejectHandler) to register your handler.
| Method Summary | |
|---|---|
void |
createAutoCancelReject(FIXMessageComponent cancelRequest,
FIXMessage rejMessage)
Called when an order modification request (cancel or reject) against an order is automatically rejected. |
void |
createAutoCancelReject(FIXRegularOrder order,
FIXMessageComponent cancelRequest,
FIXMessage cxlRejMessage)
Called when an order modification request (cancel or reject) against an order is automatically rejected. |
void |
createAutoExecutionReject(FIXMessageComponent newOrder,
FIXMessage rejMessage)
Called when an order message is automatically rejected. |
| Method Detail |
|---|
void createAutoCancelReject(FIXRegularOrder order,
FIXMessageComponent cancelRequest,
FIXMessage cxlRejMessage)
The handler is called by run-time to post-process an automatically generated reject message. This module is responsible for generating "OrderID".
QWFIX provides a default implementation.
order - the ordercancelRequest - the cancel requestcxlRejMessage - the "Cancel Reject" message
void createAutoCancelReject(FIXMessageComponent cancelRequest,
FIXMessage rejMessage)
The handler is called by run-time to post-process an automatically generated reject message. This module is responsible for generating "OrderID".
QWFIX provides a default implementation.
cancelRequest - the cancel requestrejMessage - the "Cancel Reject" message
void createAutoExecutionReject(FIXMessageComponent newOrder,
FIXMessage rejMessage)
The QWFIX run-time already created the reject message and filled in most of fields. This module is usually responsible for generating IDs ("ExecID" and "OrderID") and filling in "0" values for "LastQty", "LastPx", "CumQty", "AvgPx" and "LeavesQty" tags.
QWFIX provides default implementation for this handler. In default handler, "ExecID" is generated by the following rule:
1. If order is not populated from a list or cross order, the ExecID will follow the format of "GlobalPersistenceID.MsgSeqNum". Both GlobalPersistenceID and MsgSeqNum are integers. In order to further reduce the length of the ID, we use FIXOrderManagerUtility.packNumber(int) to pack the number.
2. If order is populated from a cross or list order, index of the repeating instance should also be appended to ensure uniqueness. The format will be "GlobalPersistenceID.MsgSeqNum.Index".
The "OrderID" rule in default implementation is the same as the rule for "ClOrdID". Uniqueness is guaranteed.
Application developers can provide their own implementation to override the default handler.
newOrder - the new orderrejMessage - the "Execution Reject" message
|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||