Package org.drip.oms.transaction
Class OrderQuantityTracker
java.lang.Object
org.drip.oms.transaction.OrderQuantityTracker
public class OrderQuantityTracker
extends java.lang.Object
OrderQuantityTracker tracks the Components of an Order Quantity. 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 = Order Specification and Session Metrics
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description OrderQuantityTracker(double original)
OrderQuantityTracker Constructor -
Method Summary
Modifier and Type Method Description boolean
accepted()
Process Order Acceptancedouble
cumulative()
Retrieve the Cumulatively Executed Order Quantitydouble
current()
Retrieve the Current Order Quantityboolean
filled()
Indicate if the Order has been Filleddouble
lastShares()
Retrieve the Last Executed Shares Countdouble
leaves()
Retrieve the Order Leaves Quantitydouble
original()
Retrieve the Original Order Quantityjava.lang.String
toString()
Generate String version of the state without Paddingjava.lang.String
toString(java.lang.String pad)
Generate String version of the state with Padding appliedboolean
updateCurrent(double current)
Update the Current Order Quantityboolean
updateLastShares(double lastShares)
Update the Last Executed Shares CountMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
OrderQuantityTracker
public OrderQuantityTracker(double original) throws java.lang.ExceptionOrderQuantityTracker Constructor- Parameters:
original
- Original Order Quantity- Throws:
java.lang.Exception
- Thrown if the Order Quantity is Invalid
-
-
Method Details
-
original
public double original()Retrieve the Original Order Quantity- Returns:
- Original Order Quantity
-
current
public double current()Retrieve the Current Order Quantity- Returns:
- Current Order Quantity
-
cumulative
public double cumulative()Retrieve the Cumulatively Executed Order Quantity- Returns:
- Cumulatively Executed Order Quantity
-
leaves
public double leaves()Retrieve the Order Leaves Quantity- Returns:
- Order Leaves Quantity
-
updateCurrent
public boolean updateCurrent(double current)Update the Current Order Quantity- Parameters:
current
- Current Order Quantity- Returns:
- TRUE - Current Order Quantity successfully Updated
-
filled
public boolean filled()Indicate if the Order has been Filled- Returns:
- TRUE - Order has been Filled
-
accepted
public boolean accepted()Process Order Acceptance- Returns:
- TRUE - Order Acceptance successfully processed
-
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:
toString
in classjava.lang.Object
- Returns:
- String version of the state without Padding
-