Record Class BestExecutionAnalyzer.OrderOutcome
java.lang.Object
java.lang.Record
com.quantfinlib.regulatory.BestExecutionAnalyzer.OrderOutcome
- Enclosing class:
BestExecutionAnalyzer
-
Constructor Summary
ConstructorsConstructorDescriptionOrderOutcome(String orderId, String venue, Side side, long quantity, double arrivalMid, double executionPrice, long latencyToFillNanos, boolean filled) Creates an instance of aOrderOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thearrivalMidrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theexecutionPricerecord component.booleanfilled()Returns the value of thefilledrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelatencyToFillNanosrecord component.orderId()Returns the value of theorderIdrecord component.longquantity()Returns the value of thequantityrecord component.side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.venue()Returns the value of thevenuerecord component.
-
Constructor Details
-
OrderOutcome
public OrderOutcome(String orderId, String venue, Side side, long quantity, double arrivalMid, double executionPrice, long latencyToFillNanos, boolean filled) Creates an instance of aOrderOutcomerecord class.- Parameters:
orderId- the value for theorderIdrecord componentvenue- the value for thevenuerecord componentside- the value for thesiderecord componentquantity- the value for thequantityrecord componentarrivalMid- the value for thearrivalMidrecord componentexecutionPrice- the value for theexecutionPricerecord componentlatencyToFillNanos- the value for thelatencyToFillNanosrecord componentfilled- the value for thefilledrecord 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. -
orderId
Returns the value of theorderIdrecord component.- Returns:
- the value of the
orderIdrecord component
-
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-
quantity
public long quantity()Returns the value of thequantityrecord component.- Returns:
- the value of the
quantityrecord component
-
arrivalMid
public double arrivalMid()Returns the value of thearrivalMidrecord component.- Returns:
- the value of the
arrivalMidrecord component
-
executionPrice
public double executionPrice()Returns the value of theexecutionPricerecord component.- Returns:
- the value of the
executionPricerecord component
-
latencyToFillNanos
public long latencyToFillNanos()Returns the value of thelatencyToFillNanosrecord component.- Returns:
- the value of the
latencyToFillNanosrecord component
-
filled
public boolean filled()Returns the value of thefilledrecord component.- Returns:
- the value of the
filledrecord component
-