Record Class TransactionCostAnalyzer.TcaReport
java.lang.Object
java.lang.Record
com.quantfinlib.microstructure.TransactionCostAnalyzer.TcaReport
- Enclosing class:
TransactionCostAnalyzer
public static record TransactionCostAnalyzer.TcaReport(long totalQuantity, double avgExecutionPrice, double arrivalMid, double marketVwap, double implementationShortfallBps, double slippageVsVwapBps, double avgEffectiveSpreadBps)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTcaReport(long totalQuantity, double avgExecutionPrice, double arrivalMid, double marketVwap, double implementationShortfallBps, double slippageVsVwapBps, double avgEffectiveSpreadBps) Creates an instance of aTcaReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thearrivalMidrecord component.doubleReturns the value of theavgEffectiveSpreadBpsrecord component.doubleReturns the value of theavgExecutionPricerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theimplementationShortfallBpsrecord component.doubleReturns the value of themarketVwaprecord component.doubleReturns the value of theslippageVsVwapBpsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalQuantityrecord component.
-
Constructor Details
-
TcaReport
public TcaReport(long totalQuantity, double avgExecutionPrice, double arrivalMid, double marketVwap, double implementationShortfallBps, double slippageVsVwapBps, double avgEffectiveSpreadBps) Creates an instance of aTcaReportrecord class.- Parameters:
totalQuantity- the value for thetotalQuantityrecord componentavgExecutionPrice- the value for theavgExecutionPricerecord componentarrivalMid- the value for thearrivalMidrecord componentmarketVwap- the value for themarketVwaprecord componentimplementationShortfallBps- the value for theimplementationShortfallBpsrecord componentslippageVsVwapBps- the value for theslippageVsVwapBpsrecord componentavgEffectiveSpreadBps- the value for theavgEffectiveSpreadBpsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
totalQuantity
public long totalQuantity()Returns the value of thetotalQuantityrecord component.- Returns:
- the value of the
totalQuantityrecord component
-
avgExecutionPrice
public double avgExecutionPrice()Returns the value of theavgExecutionPricerecord component.- Returns:
- the value of the
avgExecutionPricerecord component
-
arrivalMid
public double arrivalMid()Returns the value of thearrivalMidrecord component.- Returns:
- the value of the
arrivalMidrecord component
-
marketVwap
public double marketVwap()Returns the value of themarketVwaprecord component.- Returns:
- the value of the
marketVwaprecord component
-
implementationShortfallBps
public double implementationShortfallBps()Returns the value of theimplementationShortfallBpsrecord component.- Returns:
- the value of the
implementationShortfallBpsrecord component
-
slippageVsVwapBps
public double slippageVsVwapBps()Returns the value of theslippageVsVwapBpsrecord component.- Returns:
- the value of the
slippageVsVwapBpsrecord component
-
avgEffectiveSpreadBps
public double avgEffectiveSpreadBps()Returns the value of theavgEffectiveSpreadBpsrecord component.- Returns:
- the value of the
avgEffectiveSpreadBpsrecord component
-