Record Class AdaptiveSor.Config
java.lang.Object
java.lang.Record
com.quantfinlib.execution.AdaptiveSor.Config
- Enclosing class:
AdaptiveSor
public static record AdaptiveSor.Config(double missPenaltyBps, double urgencyBpsPerMs, double minFillRate, long defaultDarkProbeShares, double maxDarkFraction)
extends Record
Tunable penalties;
defaults() is a sane starting point.-
Constructor Summary
ConstructorsConstructorDescriptionConfig(double missPenaltyBps, double urgencyBpsPerMs, double minFillRate, long defaultDarkProbeShares, double maxDarkFraction) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedefaultDarkProbeSharesrecord component.static AdaptiveSor.Configdefaults()missPenalty 2 bps (≈ re-cross half a spread), urgency 1 bp/ms of latency, veto below 50% fill rate, 5,000-share default dark probe, dark capped at half the parent.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 themaxDarkFractionrecord component.doubleReturns the value of theminFillRaterecord component.doubleReturns the value of themissPenaltyBpsrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theurgencyBpsPerMsrecord component.
-
Constructor Details
-
Config
public Config(double missPenaltyBps, double urgencyBpsPerMs, double minFillRate, long defaultDarkProbeShares, double maxDarkFraction) Creates an instance of aConfigrecord class.- Parameters:
missPenaltyBps- the value for themissPenaltyBpsrecord componenturgencyBpsPerMs- the value for theurgencyBpsPerMsrecord componentminFillRate- the value for theminFillRaterecord componentdefaultDarkProbeShares- the value for thedefaultDarkProbeSharesrecord componentmaxDarkFraction- the value for themaxDarkFractionrecord component
-
-
Method Details
-
defaults
missPenalty 2 bps (≈ re-cross half a spread), urgency 1 bp/ms of latency, veto below 50% fill rate, 5,000-share default dark probe, dark capped at half the parent. -
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. -
missPenaltyBps
public double missPenaltyBps()Returns the value of themissPenaltyBpsrecord component.- Returns:
- the value of the
missPenaltyBpsrecord component
-
urgencyBpsPerMs
public double urgencyBpsPerMs()Returns the value of theurgencyBpsPerMsrecord component.- Returns:
- the value of the
urgencyBpsPerMsrecord component
-
minFillRate
public double minFillRate()Returns the value of theminFillRaterecord component.- Returns:
- the value of the
minFillRaterecord component
-
maxDarkFraction
public double maxDarkFraction()Returns the value of themaxDarkFractionrecord component.- Returns:
- the value of the
maxDarkFractionrecord component
-