Package org.drip.oms.fix4_2
Class AgentOrder
java.lang.Object
org.drip.oms.fix4_2.AgentOrder
- All Implemented Interfaces:
AgentVenueListener
public class AgentOrder extends java.lang.Object implements AgentVenueListener
AgentOrder holds the Details of a FIX 4.2 Agent Order. The References are:
- Berkowitz, S. A., D. E. Logue, and E. A. J. Noser (1988): The Total Cost of Transactions on the NYSE Journal of Finance 43 (1) 97-112
- Cont, R., and A. Kukanov (2017): Optimal Order Placement in Limit Order Markets Quantitative Finance 17 (1) 21-39
- Vassilis, P. (2005a): A Realistic Model of Market Liquidity and Depth Journal of Futures Markets 25 (5) 443-464
- Vassilis, P. (2005b): Slow and Fast Markets Journal of Economics and Business 57 (6) 576-593
- Weiss, D. (2006): After the Trade is Made: Processing Securities Transactions Portfolio Publishing London UK
- Module = Product Core Module
- Library = Transaction Cost Analytics
- Project = Rd Order Specification, Handling, and Management
- Package = Implementation of FIX 4.2 Constructs
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description AgentOrder(Order order, java.util.Date creationRequestTime)AgentOrder Constructor -
Method Summary
Modifier and Type Method Description booleanaccept()Accept the FIX Orderjava.lang.StringclOrdID()Retrieve the FIXClOrdIDjava.util.DatecreationRequestTime()Retrieve the Order Creation Request Timebooleanexecution(double lastShares)Handle the Order Executionstatic AgentOrderFromAgentRequest(AgentRequest agentRequest)Construct a AgentOrder Instance from the Agent RequestOrderorder()Retrieve the Underlying OrderintorderStatus()Retrieve the Order Statusjava.lang.StringorigClOrdID()Retrieve the FIXOrigClOrdIDintprecedenceOrdinal()Retrieve the Precedence Ordinalbooleanreject()Reject the FIX Orderjava.lang.StringtoString()Generate String version of the state without Paddingjava.lang.StringtoString(java.lang.String pad)Generate String version of the state with Padding appliedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
AgentOrder
AgentOrder Constructor- Parameters:
order- Underlying OrdercreationRequestTime- Creation Request Time- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
FromAgentRequest
Construct a AgentOrder Instance from the Agent Request- Parameters:
agentRequest- Agent Request- Returns:
- FIXOrder Instance
-
order
Retrieve the Underlying Order- Returns:
- Underlying Order
-
precedenceOrdinal
public int precedenceOrdinal()Retrieve the Precedence Ordinal- Returns:
- The Precedence Ordinal
-
orderStatus
public int orderStatus()Retrieve the Order Status- Returns:
- The Order Status
-
creationRequestTime
public java.util.Date creationRequestTime()Retrieve the Order Creation Request Time- Returns:
- The Order Creation Request Time
-
clOrdID
public java.lang.String clOrdID()Retrieve the FIXClOrdID- Returns:
- FIX
ClOrdID
-
origClOrdID
public java.lang.String origClOrdID()Retrieve the FIXOrigClOrdID- Returns:
- FIX
OrigClOrdID
-
reject
public boolean reject()Reject the FIX Order- Returns:
- TRUE - FIX Order successfully rejected
-
accept
public boolean accept()Accept the FIX Order- Returns:
- TRUE - FIX Order successfully accepted
-
execution
public boolean execution(double lastShares)Handle the Order Execution- Specified by:
executionin interfaceAgentVenueListener- Parameters:
lastShares- Last Executed Shares Count- Returns:
- TRUE - Order Execution successfully handled
-
toString
public java.lang.String toString(java.lang.String pad)Generate String version of the state with Padding applied- Parameters:
pad- Padding- Returns:
- String version of the state with Padding applied
-
toString
public java.lang.String toString()Generate String version of the state without Padding- Overrides:
toStringin classjava.lang.Object- Returns:
- String version of the state without Padding
-