Package org.marketcetera.trade
Interface RootOrderIdFactory
-
public interface RootOrderIdFactoryConstructs root order id values.The root order ID is a Marketcetera para-FIX artifact that uniquely identifies an order chain. An order chain can be loosely defined as all the FIX messages whose execution reports share the same broker OrderID (37) value. When persisting messages, Marketcetera identifies the root order ID for an order chain and uses that to link messages together. This is particularly useful when calculating positions to make sure that partial fills aren't counted twice.
- Since:
- 2.5.0
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OrderIDgetRootOrderId(TradeMessage inReport)Gets the root order id associated with the given report.OrderIDgetRootOrderId(quickfix.Message inMessage)Gets the root order id associated with the given message.voidreceiveOutgoingMessage(quickfix.Message inMessage)Records outgoing messages, if necessary.
-
-
-
Method Detail
-
getRootOrderId
OrderID getRootOrderId(TradeMessage inReport)
Gets the root order id associated with the given report.- Parameters:
inReport- aTradeMessagevalue- Returns:
- an
OrderIDvalue ornullif no root order id exists
-
getRootOrderId
OrderID getRootOrderId(quickfix.Message inMessage)
Gets the root order id associated with the given message.- Parameters:
inMessage- aMessagevalue- Returns:
- an
OrderIDvalue ornullif no root order id exists
-
receiveOutgoingMessage
void receiveOutgoingMessage(quickfix.Message inMessage)
Records outgoing messages, if necessary.- Parameters:
inMessage- aMessagevalue
-
-