Record Class BookAnalytics.SweepResult
java.lang.Object
java.lang.Record
com.quantfinlib.orderbook.BookAnalytics.SweepResult
- Enclosing class:
BookAnalytics
public static record BookAnalytics.SweepResult(long filledQty, double avgPrice, double impactBps, int levelsConsumed)
extends Record
Result of simulating a sweep: what a marketable order of that size would pay.
-
Constructor Summary
ConstructorsConstructorDescriptionSweepResult(long filledQty, double avgPrice, double impactBps, int levelsConsumed) Creates an instance of aSweepResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleavgPrice()Returns the value of theavgPricerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefilledQtyrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theimpactBpsrecord component.intReturns the value of thelevelsConsumedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SweepResult
public SweepResult(long filledQty, double avgPrice, double impactBps, int levelsConsumed) Creates an instance of aSweepResultrecord class.- Parameters:
filledQty- the value for thefilledQtyrecord componentavgPrice- the value for theavgPricerecord componentimpactBps- the value for theimpactBpsrecord componentlevelsConsumed- the value for thelevelsConsumedrecord 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. -
filledQty
public long filledQty()Returns the value of thefilledQtyrecord component.- Returns:
- the value of the
filledQtyrecord component
-
avgPrice
public double avgPrice()Returns the value of theavgPricerecord component.- Returns:
- the value of the
avgPricerecord component
-
impactBps
public double impactBps()Returns the value of theimpactBpsrecord component.- Returns:
- the value of the
impactBpsrecord component
-
levelsConsumed
public int levelsConsumed()Returns the value of thelevelsConsumedrecord component.- Returns:
- the value of the
levelsConsumedrecord component
-