Package org.drip.oms.benchmark
Class VWAP
java.lang.Object
org.drip.oms.benchmark.VWAP
public class VWAP
extends java.lang.Object
VWAP implements the Volume-Weighted Average Price VWAP that carries the Metrics associated with
Trades in a Session. 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 = Benchmark/Tie/Peg Price Thresholds
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description VWAP(java.util.Date sessionStart, java.util.Date sessionEnd)
VWAP Constructor -
Method Summary
Modifier and Type Method Description boolean
addTrade(double size, double price)
Add a Trade to the Sessionboolean
finish()
Finish the VWAP Sessiondouble
sessionAverage()
Retrieve the Session VWAP Averagejava.util.Date
sessionEnd()
Retrieve the End of the Sessionjava.util.Date
sessionStart()
Retrieve the Start of the SessionVWAP
Standard()
Construct a Standard Instance of VWAPdouble
transactionMarketValue()
Retrieve the Session Transaction Market Valuedouble
transactionVolume()
Retrieve the Session Transaction VolumeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
VWAP
public VWAP(java.util.Date sessionStart, java.util.Date sessionEnd) throws java.lang.ExceptionVWAP Constructor- Parameters:
sessionStart
- Session StartsessionEnd
- Session End- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
Standard
Construct a Standard Instance of VWAP- Returns:
- Standard VWAP Instance
-
sessionStart
public java.util.Date sessionStart()Retrieve the Start of the Session- Returns:
- Start of the Session
-
sessionEnd
public java.util.Date sessionEnd()Retrieve the End of the Session- Returns:
- End of the Session
-
transactionVolume
public double transactionVolume()Retrieve the Session Transaction Volume- Returns:
- The Session Transaction Volume
-
transactionMarketValue
public double transactionMarketValue()Retrieve the Session Transaction Market Value- Returns:
- The Session Transaction Market Value
-
addTrade
public boolean addTrade(double size, double price)Add a Trade to the Session- Parameters:
size
- Sizeprice
- Price- Returns:
- TRUE - The Trade has been successfully added
-
finish
public boolean finish()Finish the VWAP Session- Returns:
- TRUE - The Session is Finished
-
sessionAverage
public double sessionAverage()Retrieve the Session VWAP Average- Returns:
- The Session VWAP Average
-