Record Class BestExecutionAnalyzer.BestExecutionReport
java.lang.Object
java.lang.Record
com.quantfinlib.regulatory.BestExecutionAnalyzer.BestExecutionReport
- Enclosing class:
BestExecutionAnalyzer
-
Constructor Summary
ConstructorsConstructorDescriptionBestExecutionReport(int totalOrders, double fillRate, double avgSlippageBps, double medianLatencyToFillMillis, double atOrBetterThanArrivalPct, Map<String, Double> avgSlippageBpsByVenue) Creates an instance of aBestExecutionReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theatOrBetterThanArrivalPctrecord component.doubleReturns the value of theavgSlippageBpsrecord component.Returns the value of theavgSlippageBpsByVenuerecord component.final booleanIndicates whether some other object is "equal to" this one.doublefillRate()Returns the value of thefillRaterecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themedianLatencyToFillMillisrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalOrdersrecord component.
-
Constructor Details
-
BestExecutionReport
public BestExecutionReport(int totalOrders, double fillRate, double avgSlippageBps, double medianLatencyToFillMillis, double atOrBetterThanArrivalPct, Map<String, Double> avgSlippageBpsByVenue) Creates an instance of aBestExecutionReportrecord class.- Parameters:
totalOrders- the value for thetotalOrdersrecord componentfillRate- the value for thefillRaterecord componentavgSlippageBps- the value for theavgSlippageBpsrecord componentmedianLatencyToFillMillis- the value for themedianLatencyToFillMillisrecord componentatOrBetterThanArrivalPct- the value for theatOrBetterThanArrivalPctrecord componentavgSlippageBpsByVenue- the value for theavgSlippageBpsByVenuerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
totalOrders
public int totalOrders()Returns the value of thetotalOrdersrecord component.- Returns:
- the value of the
totalOrdersrecord component
-
fillRate
public double fillRate()Returns the value of thefillRaterecord component.- Returns:
- the value of the
fillRaterecord component
-
avgSlippageBps
public double avgSlippageBps()Returns the value of theavgSlippageBpsrecord component.- Returns:
- the value of the
avgSlippageBpsrecord component
-
medianLatencyToFillMillis
public double medianLatencyToFillMillis()Returns the value of themedianLatencyToFillMillisrecord component.- Returns:
- the value of the
medianLatencyToFillMillisrecord component
-
atOrBetterThanArrivalPct
public double atOrBetterThanArrivalPct()Returns the value of theatOrBetterThanArrivalPctrecord component.- Returns:
- the value of the
atOrBetterThanArrivalPctrecord component
-
avgSlippageBpsByVenue
-