Record Class VenueQuote
java.lang.Object
java.lang.Record
com.quantfinlib.execution.VenueQuote
public record VenueQuote(String venue, double bid, long bidSize, double ask, long askSize, double feeBps, long latencyNanos, boolean dark)
extends Record
A venue's dealable top of book for routing. For dark venues, bid/ask sizes
are the estimated executable liquidity and fills are assumed at the
venue's midpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionVenueQuote(String venue, double bid, long bidSize, double ask, long askSize, double feeBps, long latencyNanos, boolean dark) Creates an instance of aVenueQuoterecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleask()Returns the value of theaskrecord component.longaskSize()Returns the value of theaskSizerecord component.doublebid()Returns the value of thebidrecord component.longbidSize()Returns the value of thebidSizerecord component.booleandark()Returns the value of thedarkrecord component.final booleanIndicates whether some other object is "equal to" this one.doublefeeBps()Returns the value of thefeeBpsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelatencyNanosrecord component.doublemid()final StringtoString()Returns a string representation of this record class.venue()Returns the value of thevenuerecord component.
-
Constructor Details
-
VenueQuote
public VenueQuote(String venue, double bid, long bidSize, double ask, long askSize, double feeBps, long latencyNanos, boolean dark) Creates an instance of aVenueQuoterecord class.- Parameters:
venue- the value for thevenuerecord componentbid- the value for thebidrecord componentbidSize- the value for thebidSizerecord componentask- the value for theaskrecord componentaskSize- the value for theaskSizerecord componentfeeBps- the value for thefeeBpsrecord componentlatencyNanos- the value for thelatencyNanosrecord componentdark- the value for thedarkrecord component
-
-
Method Details
-
mid
public double mid() -
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. -
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-
bid
public double bid()Returns the value of thebidrecord component.- Returns:
- the value of the
bidrecord component
-
bidSize
public long bidSize()Returns the value of thebidSizerecord component.- Returns:
- the value of the
bidSizerecord component
-
ask
public double ask()Returns the value of theaskrecord component.- Returns:
- the value of the
askrecord component
-
askSize
public long askSize()Returns the value of theaskSizerecord component.- Returns:
- the value of the
askSizerecord component
-
feeBps
public double feeBps()Returns the value of thefeeBpsrecord component.- Returns:
- the value of the
feeBpsrecord component
-
latencyNanos
public long latencyNanos()Returns the value of thelatencyNanosrecord component.- Returns:
- the value of the
latencyNanosrecord component
-
dark
public boolean dark()Returns the value of thedarkrecord component.- Returns:
- the value of the
darkrecord component
-