Record Class LiquiditySeekingAlgo.Config
java.lang.Object
java.lang.Record
com.quantfinlib.execution.LiquiditySeekingAlgo.Config
- Record Components:
spreadTolerance- how far above forecast still counts as cheap, as a fraction (0.1 = up to 10% over); 0 = strictmaxVolRegime- opportunistic bursts only below this normalized vol regime (0..1), e.g. 0.5maxImpactBps- opportunistic bursts only below this estimated impact, e.g. 5 bpsmaxDepthFraction- burst clip as a fraction of displayed depth, in (0, 1]forceCompleteFrom- schedule fraction where the completion floor starts ramping, in [0, 1), e.g. 0.7
- Enclosing class:
LiquiditySeekingAlgo
public static record LiquiditySeekingAlgo.Config(double spreadTolerance, double maxVolRegime, double maxImpactBps, double maxDepthFraction, double forceCompleteFrom)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(double spreadTolerance, double maxVolRegime, double maxImpactBps, double maxDepthFraction, double forceCompleteFrom) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LiquiditySeekingAlgo.Configdefaults()10% spread tolerance, vol regime invalid input: '<' 0.5, impact invalid input: '<' 5 bps, 25% clips, floor from 70%.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theforceCompleteFromrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themaxDepthFractionrecord component.doubleReturns the value of themaxImpactBpsrecord component.doubleReturns the value of themaxVolRegimerecord component.doubleReturns the value of thespreadTolerancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(double spreadTolerance, double maxVolRegime, double maxImpactBps, double maxDepthFraction, double forceCompleteFrom) Creates an instance of aConfigrecord class.- Parameters:
spreadTolerance- the value for thespreadTolerancerecord componentmaxVolRegime- the value for themaxVolRegimerecord componentmaxImpactBps- the value for themaxImpactBpsrecord componentmaxDepthFraction- the value for themaxDepthFractionrecord componentforceCompleteFrom- the value for theforceCompleteFromrecord component
-
-
Method Details
-
defaults
10% spread tolerance, vol regime invalid input: '<' 0.5, impact invalid input: '<' 5 bps, 25% clips, floor from 70%. -
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. -
spreadTolerance
public double spreadTolerance()Returns the value of thespreadTolerancerecord component.- Returns:
- the value of the
spreadTolerancerecord component
-
maxVolRegime
public double maxVolRegime()Returns the value of themaxVolRegimerecord component.- Returns:
- the value of the
maxVolRegimerecord component
-
maxImpactBps
public double maxImpactBps()Returns the value of themaxImpactBpsrecord component.- Returns:
- the value of the
maxImpactBpsrecord component
-
maxDepthFraction
public double maxDepthFraction()Returns the value of themaxDepthFractionrecord component.- Returns:
- the value of the
maxDepthFractionrecord component
-
forceCompleteFrom
public double forceCompleteFrom()Returns the value of theforceCompleteFromrecord component.- Returns:
- the value of the
forceCompleteFromrecord component
-