|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teraspaces.qwfix.ordermanager.FIXOrder
public abstract class FIXOrder
Provides access to the information needed to define an order in FIX protocol.
| Method Summary | |
|---|---|
FIXOrderType |
getFIXOrderType()
Gets the type of the order. |
int |
getIndex()
Gets the index of current order in corresponding FIXSessionOrderList. |
abstract FIXMessage |
getMessage(int index)
Gets the FIXMessage related to this order by specified index. |
abstract int |
getMessageCount()
Gets the number of messages related to the current order. |
abstract FIXMessage |
getPendingRequestMessage(int index)
Gets the pending request FIX message by index. |
abstract int |
getPendingRequestsCount()
Gets count of pending request FIX messages. |
FIXSessionOrderList |
getSessionOrderList()
Gets the session order list. |
FIXSessionOrderManager |
getSessionOrderManager()
Gets the session order manager. |
FIXSessionPersistence |
getSessionPersistence()
Gets the session persistence. |
Object |
getTag()
Gets application defined information associated this order. |
abstract boolean |
isActive()
Gets a value indicating whether the current order is active. |
abstract boolean |
isPendingCancel()
Gets a value indicating whether the current order is pending cancel. |
abstract boolean |
isPendingReplace()
Gets a value indicating whether the current order is pending replace |
boolean |
isRestatedGT()
Gets a value indicating whether the current order represents a restated GT order. |
void |
setTag(Object tag)
Sets application defined information associated this order. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getIndex()
FIXSessionOrderList.
getSessionOrderList()public FIXOrderType getFIXOrderType()
public FIXSessionOrderManager getSessionOrderManager()
public FIXSessionPersistence getSessionPersistence()
public FIXSessionOrderList getSessionOrderList()
getIndex()public Object getTag()
Tag could be any object. It's up to application developers how to use it.
setTag(Object)public void setTag(Object tag)
Tag could be any object. It's up to application developers how to use it.
tag - the new taggetTag()public abstract boolean isActive()
A FIXRegularOrder is considered active if FIXRegularOrder.getOrdStatus() represents an active state.
A FIXCrossOrder is considered active if any side of the order is active.
A FIXListOrder is considered active if any individual order is active.
public abstract boolean isPendingCancel()
isPendingCancel() returns true if there is any cancel request in the pending order list.
An order may have more than 1 pending orders. It's up to the high level business logic to decide whether the pending orders should be processed in time order or reverse time order.
isPendingReplace(),
getPendingRequestsCount(),
getPendingRequestMessage(int)public abstract boolean isPendingReplace()
isPendingReplace() returns true if there is any replace request in the pending order list.
An order may have more than 1 pending orders. It's up to the high level business logic to decide whether the pending orders should be processed in time order or reverse time order.
isPendingCancel(),
getPendingRequestsCount(),
getPendingRequestMessage(int)public boolean isRestatedGT()
Usually a restated GT order starts with a Execution Report FIX message with Restated order status sent from sell side before market opens.
The first day GT order is not considered a restated GT order. Restated GT order requires special treatment on both buy side and sell side.
FIXSessionOrderManagerGTOrderHandler,
FIXSessionOrderManager.setGTOrderHandler(FIXSessionOrderManagerGTOrderHandler)public abstract FIXMessage getMessage(int index)
index - the index
getMessageCount()public abstract int getMessageCount()
getMessage(int)public abstract int getPendingRequestsCount()
getPendingRequestMessage(int)public abstract FIXMessage getPendingRequestMessage(int index)
GetPendingRequestMessage does not acquire FIXOrderManager.syncRoot lock.
If the pending order is a cross order cancel or cross order replace request, the return message may contain more one side of the cross order. To get the exact side related to the current order, use FIXRegularOrder.getPendingRequest(int).
index - the index
getPendingRequestsCount()
|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||